Skip to main content
RoundedLink normalizes its destination and opens it in a new tab. Supply a non-empty label; otherwise the component renders nothing.
Clicks stop propagation before calling onClick. Use that callback for application behavior without interfering with navigation. Only the listed props are forwarded; for router integration or configurable link attributes, use Button.

Props

string
Class applied to the link.
"primary" | "secondary"
default:"primary"
Label text color: primary or secondary.
string
required
Destination URL, normalized by the safe-URL helper. Opens in a new tab.
string
Visible link text. An absent or empty label renders nothing.
((event: MouseEvent<HTMLElement, MouseEvent>) => void)
Click callback after propagation is stopped.