Semantic element for navigation between pages.
This component is based on the a
element and supports common margin props.
Prop | Type | Default |
---|---|---|
asChild | boolean | |
size | Responsive<enum> | |
weight | Responsive<"light" | "regular" | "medium" | "bold"> | |
trim | Responsive<"normal" | "start" | "end" | "both"> | |
truncate | boolean | |
wrap | Responsive<"wrap" | "nowrap" | "pretty" | "balance"> | |
underline | "auto" | "always" | "hover" | "none" | "auto" |
color | enum | |
highContrast | boolean |
Use the size
prop to control the size of the link. The prop also provides correct line height and corrective letter spacingโas text size increases, the relative line height and letter spacing decrease.
Currently, we recommend using only sizes 1,2 and 3 following the ScaleUI Radix design system.
Use the weight
prop to set the text weight.
Use the truncate
prop to truncate text with an ellipsis when it overflows its container.
Use the underline
prop to manage the visibility of the underline affordance.