Examples
Inline sentence links
Link can sit naturally inside text without extra wrappers.
Read the component documentation before shipping.
Features
- Focus-visible ring.
- Theme-aware color.
Installation
bash
pnpm dlx structyl add linkAPI Reference
Link
Styled anchor element.
| Prop | Type | Default |
|---|---|---|
| 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 variantOptional text variant. | — |
| asChild | booleanMerge props onto the immediate child instead of rendering the default element. | false |
| className | stringAdditional Tailwind classes merged with the component defaults. | — |