Tonic UI
Getting StartedColor ModeColor StyleVersionsContributing
THEME
BordersBreakpointsColorsOutlinesPositionsSpacingSizesShadowsTypography
BUILDING BLOCKS
BoxControlBox
UTILITIES

Link

Links are accessible elements used primarily for navigation. This component is styled to resemble a hyperlink and semantically renders an <a>.

Import

Usage

Default

EDITABLE EXAMPLE

Underlined link

EDITABLE EXAMPLE

Link with icon

EDITABLE EXAMPLE

Link with disabled attribute

EDITABLE EXAMPLE

Link to another page

EDITABLE EXAMPLE

You can also create an ExternalLink component for enhanced usability.

EDITABLE EXAMPLE

Props

NameTypeDefaultDescription
disabledbooleanIf true, the link will be disabled. This sets aria-disabled=true and you can style this state by using the _disabled prop.
onClickfunctionA callback called when the link is clicked.