Skip to content
TrademarkTrademark
Docs
Components

SmartLink

Updated: May 9, 2025
View on GitHub

SmartLink provides flexible and consistent inline navigation with built-in icon support and style overrides.

Fill width

Use fillWidth to stretch the link across the container. It's useful when you're using fluid children elements.

Unstyled

Disable default padding and visual treatments using unstyled.

Selected

Apply underline when selected is true.

API reference

Type
Default
prefixIcon
Icon before the text.
IconName—
suffixIcon
Icon after the text — an arrow for an outbound link, say.
IconName—
fillWidth
Fill the parent's width rather than hugging the text.
booleanfalse
iconSize
Size of either icon.
xllmsxs
xs
selected
Mark as the current page, for navigation.
boolean—
unstyled
Drop the link styling, when the child carries its own.
booleanfalse
children
React.ReactNode—
href
Where it goes. Internal paths route through the framework adapter; external ones do not.
string—
style
React.CSSProperties—
className
string—
…and every React.AnchorHTMLAttributes propinherited—
Edit this page on GitHub