Link
Accessible navigation hyperlink component built on top of Next.js Link and HTML anchor primitives with variants and external indicators.
import
import { Link } from "@/components/ui/link/link";$
npx @bloomui-react/cli add linklink.tsx
Default
Standard primary navigation link.
Variants
Visual style variants using the variant prop: default, muted, underline, or ghost.
variant:
default | muted | underline | ghostSizes
Typography size scales using the size prop: sm, md, or lg.
size:
sm | md | lgExternal Link Indicator
Automatically renders an external arrow icon and target=_blank attributes with the isExternal prop.
isExternal: boolean
Custom Start & End Content
Pass custom icons into startContent and endContent.
startContent: ReactNodeendContent: ReactNode
Props — Link
Supported properties for the Link component.
| Prop | Type | Default | Description |
|---|---|---|---|
| href | string | — | Target URL destination. |
| variant | 'default' | 'muted' | 'underline' | 'ghost' | 'default' | Visual style variant for text and hover effect. |
| size | 'sm' | 'md' | 'lg' | 'md' | Font size scale. |
| isExternal | boolean | false | Opens link in a new tab with security attributes and arrow icon. |
| startContent / endContent | ReactNode | — | Icons or elements rendered before or after the link text. |