Link
Navigates to a clear destination.
Preview
Local preview. It doesn't affect real accounts, environments, or run data.
Compare the same example at each size and density. Switching keeps input values and selection state. Size guidance and comparisons
Base UI documentation (opens in a new tab)
Preview destination. Native anchors keep their browser behavior.
Usage
Navigate to a destination with a real href. The underline and focus ring show that it navigates.
Don't use a link without an href for an action. Use Button instead. When a link opens a new tab, say so in the text and set rel.
Size: SizeProvider size="small" resizes the whole composition, including portals. The default size is Default. Size guidance and comparisons
Anatomy
native anchor + shared link class
Keyboard and accessibility
Tab to the link and press Enter to open it. Modifier-key clicks, new tabs, downloads, and hash navigation keep browser defaults.
Give each control a name that describes its purpose. Connect error messages to their controls, and signal state with more than color. Automated checks don't replace manual keyboard and assistive technology testing.
Example code
Shared components take their styles from design tokens. Each example sets its own composition and accessibility attributes. The calling screen defines callbacks, refs, and product data.
Key API
The table lists the common wrapper's main props. See the package type declarations for the full types.