Skip to content

Actions

Link

Text link in running text or on its own. Always underlined; Next link inside, <a> outside.

  • Ready
  • Keyboard tested
  • Screen reader not tested yet

Updated 2026-11-12

Playground

Change the props and the surface. The controls come from the documented props; the surfaces are the real modes.
tsx
<Link href="#tokens">Design tokens</Link>

States

Every variant in every state, side by side. Hover, pressed and focus are shown statically; the default state is interactive.

Usage

When to use

Use a link to go somewhere: another page, a section on this page, an external site.

When not to use

  • To trigger an action on the current page: use Button.
  • As the main call to action of an area: use Button with href.

How it works

Always underlined, so links never depend on colour alone. inline inherits the size of the surrounding text; standalone is medium weight for links on their own line. Internal links use Next's client navigation. With newTab, the link shows an icon and tells screen readers that it opens a new tab.

Content guidelines

The link text names the target: “Read the color foundations”, not “click here” or “more”. Open a new tab only when leaving the page would lose the person's context.

Do and don’t

  • The token architecture is described in the LVM case.

    DoThe link text says where it leads.

    The token architecture is described in the LVM case, here.

    Don’t“Here” says nothing out of context; screen reader users often hear links as a list.
Do
  • The link text describes the target.
  • Open a new tab only when the context would otherwise be lost.
Don’t
  • No “click here” or “more” without context.
  • Don't use a link for actions; use Button.

Anatomy

The parts of the component and what each one does, as in the playground above.
  1. labelUnderlined text; colour changes on hover.
  2. iconNew-tab arrow, only with newTab.

Examples

Type-checked, and the same code goes into the AI manifest. Import: import { Link } from "@/ds";

In running text

Every value lives in the design tokens and is described in the manifest.

Standalone

External, new tab

Props

Checked against the component's TypeScript type on every build.
Link props
NameTypeDefaultDescription
href (required)string–Internal (/path) or external (https://, mailto:, tel:).
variant"inline" | "standalone""inline"inline inherits the type, standalone stands on its own.
newTabbooleanfalseOpens in a new tab, with a visible hint and screen reader text.
children (required)ReactNode–Link text that names the target.

Tokens used

Derived from the utility classes in the component's source. Copy a class with one click.
Tokens used by Link
TokenTierValueUtility
link.decorationcomponent#C6492E
link.fgcomponent#0A0A0B
link.fgHovercomponent#C6492E
link.radiuscomponent4px
focussemantic#C6492E
spacing.1semantic4px
spacing.3semantic12px
surface.pagesemantic#FAFAF7
weight.mediumsemantic500

Accessibility

What is checked automatically on every build, and what a person has tested. Nothing is marked as tested unless it was.
Testing status by check
CheckHowStatus
axe-core rulesAutomated on every npm run check, at desktop and mobile widthRuns on every build
KeyboardAutomated Playwright test (scripts/keyboard.mjs)Tested
Screen readerManualNot tested yet

Keyboard

Link keyboard interactions
KeyAction
TabMoves focus to the link.
EnterFollows the link.

Semantics and focus

  • Underlined, not only coloured (WCAG 1.4.1).
  • External links get rel="noopener noreferrer".
  • New tab: visible icon and sr-only “opens in a new tab”.

Contrast

Link contrast pairings
PairingRatio (x:1)MinimumStatus
text.primary on surface.page18.924.5Pass
accent.default on surface.page4.574.5Pass
focus on surface.page4.573.0Pass