Skip to content
TeaCSS documentation

Link

A text link outside long-form prose.

A text link outside long-form prose. These classes belong to the opt-in Official preset. Add @presets "standard,official"; to the CSS entry. Standard supplies the utilities, palette, and preflight used alongside these structural shortcuts.

Classes

  • link

Example

The markup below shows the structure. Follow the linked Storybook specimen for its complete styling and, where relevant, interactive behavior.

html
<p>Read the <a class="link" href="#history">review history</a> before you approve.</p>

Variants and composition

link gives an anchor primary text colour, an underline, a darker colour on hover, and the solid keyboard ring. Use it for links in table cells, cards, and other interface text. Inside prose, the article styles already cover links.

Behavior and accessibility

Keep link on real <a href> elements and write link text that names its destination. The underline stays so the link does not depend on colour alone. For actions that change state, use a button instead.

Reference

See the interactive Storybook specimen. Continue to List or return to the Official preset overview.