Basic usage
Props
string
required
The URL the link points to.
'primary' | 'secondary' | 'tertiary' | 'emphasis' | 'accent' | 'attention' | 'danger' | 'success'
default:"'accent'"
Visual style variant inherited from Text component.
'micro' | 'mini' | 'small' | 'regular' | 'large' | 1-10
default:"'small'"
Text size inherited from Text component.
boolean
Whether the link opens in a new tab. Automatically adds
target="_blank" and rel="noopener noreferrer".boolean | string
Whether the link triggers a download. Pass a string to specify the download filename.
string
Additional CSS classes to apply.
ReactNode
The link text content.
External links
Links that open in a new tab with proper security attributes.external prop automatically adds:
target="_blank"to open in a new tabrel="noopener noreferrer"for security- Accessible aria-label indicating it opens in a new tab
Download links
Variants
Inherit all Text component variants for different semantic meanings.Sizes
In text content
Navigation menu
Footer links
With router libraries
Use with Next.js Link or React Router.Accessibility
- Uses semantic
<a>element for proper navigation - External links include descriptive aria-labels
- Download links include accessible labels
- Maintains proper focus states for keyboard navigation
- Ensure link text is descriptive and indicates the destination