Link API
View componentThe full prop reference for the Link component. A styled anchor element.
Import
tsx
import { Link } from '@structyl/styled';Props
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. | — |
Source code
If you didn't find what you need here, read the component implementation .