Skip to content

Commit

Permalink
API reference opens new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
kawaijoe committed Aug 10, 2024
1 parent d31f59c commit d2ce7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/components/link-badge/link-badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface Props {
}

export default function LinkBadge(props: Props) {
return <a href={props.href}>
return <a href={props.href} target="_blank" rel="noopener noreferrer">
<div className="flex items-center gap-1.5 px-2.5 py-1 rounded bg-zinc-100/80 hover:bg-zinc-100 dark:bg-zinc-800/80 hover:dark:bg-zinc-800 transition-all">
<div className="text-xs font-bold">{props.label}</div>
<SquareArrowOutUpRight className="h-2.5 w-2.5" />
Expand Down

0 comments on commit d2ce7d5

Please sign in to comment.