structyl

Link

stable

A styled anchor element.

Basic usage

Examples

External links

Links keep focus treatment and theme color consistent.

Inline sentence links

Link can sit naturally inside text without extra wrappers.

Read the component documentation before shipping.

Underline and text style

Control underline behavior and text color while keeping anchor semantics.

Features

  • Focus-visible ring.
  • Theme-aware color.

Installation

bash
pnpm dlx structyl add link

API Reference

Link

Styled anchor element.

PropTypeDefault
underline'always' | 'hover' | 'none'

Underline behavior.

'hover'
color'default' | 'inherit' | 'primary' | 'secondary' | 'success' | 'warning' | 'destructive' | 'muted'

Tokenized link color.

'primary'
variant'body2' | 'button' | 'caption' | Typography variant

Optional text variant.

asChildboolean

Merge props onto the immediate child instead of rendering the default element.

false
classNamestring

Additional Tailwind classes merged with the component defaults.

Link | structyl