Link
Also known as a hyperlink, a link is a clickable (text or image) element used for navigation purposes.
install | yarn add @clayui/link |
---|---|
version | 3.111.0 |
Stable3.111.0View in LexiconCHANGELOG
Property | Description |
---|---|
block boolean | Renders the button as a block element. |
borderless boolean | Flag to indicate if link should be borderless. |
button | boolean
| {
block?: boolean;
monospaced?: boolean;
small?: boolean;
} | Config for button props |
decoration 'none' | 'underline' | null | Indicates if the text should be underlined |
displayType 'danger' | 'primary' | 'secondary' | 'tertiary' | 'unstyled' | Determines how the link is displayed. |
fontSize Number | Sets the text size based on a number scale. |
messages {
opensNewWindow: string;
} | Messages used for announcement to SR. Use this for internationalization. The default value is { opensNewWindow: '(Opens a new window)', } |
monospaced boolean | Flag to indicate if the link should be monospaced. |
outline boolean | Flag to indicate if the link should use the outlined style. |
small boolean | Indicates whether the button should use the small variant. |
weight 'normal' | 'semi-bold' | Determines the font-weight of the link. |