Skip to main content
The Link component provides styled anchor elements that inherit from the Text component, with built-in support for external links and downloads.

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.
Links that open in a new tab with proper security attributes.
The external prop automatically adds:
  • target="_blank" to open in a new tab
  • rel="noopener noreferrer" for security
  • Accessible aria-label indicating it opens in a new tab

Variants

Inherit all Text component variants for different semantic meanings.

Sizes

In text content

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
  • Text - Link inherits all Text component props and styling
  • Button - For primary actions instead of navigation