Link
When to use it
Section titled “When to use it”- To take the user to another page or view, such as “Show all 24 amenities” or “Forgot your password?”.
- For a secondary action next to a form, such as “Resend code” or “Use a different email address”.
- To edit or manage an item in a list, such as “Edit” or “Manage” in account settings.
- Use size md (13px) next to body text and on its own, and size sm (12px) in dense rows, such as “Clear” beside filters.
When not to use it
Section titled “When not to use it”- For the main action on a page, such as submitting a form or booking: use the Button component instead.
Instead: Button - To filter results or switch categories: use the Chip component instead.
Instead: Chip - To open a list of options to choose from: use the Dropdown component instead.
Instead: Dropdown
Best practice
Section titled “Best practice”From the Figma documentation page (usage node 134:446), as written. These items aren’t carried into Link.intent.json, which has no field for them.
- Write link text that says where it goes or what it does (“Show all 24 amenities”), never “click here”.
- Keep links short, usually one to five words.
- Underline a link that sits inside a sentence of body text, so it doesn’t rely on colour alone; standalone links can use the default style.
- Use the same link text for the same destination everywhere.
- Leave space or a separator between two links next to each other.
- Make sure every link shows a visible keyboard focus style.
What each variant is for
Section titled “What each variant is for”| Property | Value | What it is for |
|---|---|---|
size |
md |
13px (default) |
size |
sm |
12px (dense rows, beside filters) |
state |
default |
Figma doesn’t say. |
state |
hover |
underlined |
Accessibility
Section titled “Accessibility”- The control is a native <a>, so keyboard focus, the focus ring, activation and :visited behaviour are the browser’s own; no focus style is overridden.
src/components/Link/Link.tsx:22 - href, target, rel and every other anchor attribute pass through because the passthrough props are spread onto the element.
src/components/Link/Link.tsx:29 - The label is the anchor’s text content, which gives it its accessible name.
src/components/Link/Link.tsx:31
What this version promises
Section titled “What this version promises”From Versioning (VERSIONING.md at b9ffb76):
0.3.0 adds six components on top of 0.2.1: Calendar, Card, Form, Modal, SideBar and Table. It contains twenty-three components, each exported from the package root with its props type: Avatar, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Checkbox, Chip, Dropdown, File, Form, Header, Image, Link, Logo, Modal, ProgressBar, RadioCard, SearchBar, SideBar, Stepper, Table, Toggle. Textfield is exported from the package root as well, with TextfieldProps and TextfieldState, and is public like the others (see decisions.md, 2026-10-07, Textfield). It commits you to their props, prop values and defaults, their hz- class names, the tokens in tokens.css and the three entry points (., ./styles.css, ./tokens.css). Everything in 0.3.0 beyond 0.2.1 is an addition: nothing from 0.2.1 was changed, removed or renamed. A change that breaks any of these on 0.x bumps the version to 0.4.0.
Two things about this release are worth knowing:
- Form, Modal and Table each passed release review with their literal sizes covered by a ruling in decisions.md (Card, SideBar and Calendar have their own), because no size tokens exist for them. Those literals are accepted until the designer adds matching tokens, so a later change to use tokens at the same rendered sizes would be a patch, not a breaking change.
- Dark theme is not verified for Table, and its warning tag has low contrast. The Table docs page says so. Neither is a breaking-change risk, but a fix that changes a token’s value is a patch and is listed in the changelog.
Stories
Section titled “Stories”All Variants
Section titled “All Variants”The single-variant stories (MdDefault, MdHover, SmDefault, SmHover) are cells of the variant matrix; the Design tab links each one.
Import
Section titled “Import”import { Link } from "@layerbasesystemic/horizon-design-system";import type { LinkProps, LinkSize, LinkState } from "@layerbasesystemic/horizon-design-system";@layerbasesystemic/horizon-design-system/tokens.css and @layerbasesystemic/horizon-design-system/styles.css must be loaded too; see Developing.
| Prop | Type | Default | Description |
|---|---|---|---|
size |
LinkSize |
"md" |
— |
state |
LinkState |
"default" |
— |
label |
string |
"Link" |
— |
LinkProps also extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children">, so native attributes pass through to the element (Link.tsx:7).
Union types
Section titled “Union types”LinkSize: md, sm
LinkState: default, hover
Tokens it needs
Section titled “Tokens it needs”Every CSS custom property Link.css reads, with its value in the token build at b9ffb76.
| Token | Light | Dark |
|---|---|---|
--color-text-link |
#1d44ba |
#94b3fc |
--fontfamily-body |
Inter |
same as light |
--fontsize-lg |
13px |
same as light |
--fontsize-md |
12px |
same as light |
--lineheight-lg |
20px |
same as light |
--lineheight-md |
18px |
same as light |
This matches required_tokens in Link.intent.json exactly.
Figma node
Section titled “Figma node”Page Link (57:1635), documentation frame ❖ link (134:2), component set link (133:12). The file is shared with the team only, so the frame and the link ask anyone outside it to sign in.
Variant matrix
Section titled “Variant matrix”state (2) × size (2) = 4 cells. The documentation frame (134:2) lays out state (rows: default, hover) against size (columns: md, sm). The component set (133:12) publishes all 4 variants, named size=md, state=default (133:4), size=md, state=hover (133:6), size=sm, state=default (133:8) and size=sm, state=hover (133:10). Label (text, default “Link”) is a component property, not a matrix axis. Figma draws no focus, visited or disabled variants.
state |
size=md |
size=sm |
|---|---|---|
default |
MdDefault133:4 |
SmDefault133:8 |
hover |
MdHover133:6 |
SmHover133:10 |
Each cell is the Storybook story for that combination and its Figma variant node. LinkState and LinkSize are the union types listed on the Code tab. The story that isn’t a single cell (AllVariants) is embedded on the Examples tab.
Themes
Section titled “Themes”The Link frame renders every cell once, in one theme. It has no separate light and dark frames.
The token build defines 179 tokens for light and redeclares 50 for dark; the Code tab shows Link’s tokens in both.
Values Figma never bound
Section titled “Values Figma never bound”The Figma read of Link found no values on the node that aren’t bound to a variable.
Figma variables against the token build
Section titled “Figma variables against the token build”| Figma variable | Figma value | Token in the build | Built light value | Agrees |
|---|---|---|---|---|
--color-text-link |
#1d44ba |
--color-text-link |
#1d44ba |
yes |
--fontFamily-body |
Inter |
--fontfamily-body |
Inter |
yes |
--fontSize-lg |
13 |
--fontsize-lg |
13px |
yes |
--fontSize-md |
12 |
--fontsize-md |
12px |
yes |
--lineHeight-lg |
20 |
--lineheight-lg |
20px |
yes |
--lineHeight-md |
18 |
--lineheight-md |
18px |
yes |
--fontWeight-medium |
Medium |
no such token | — | no token |
--fontWeight-medium is bound in Figma but the token build has no token of that name.