Sajari UI

Link

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

Import

Usage

Editable Example

Passing external will do the following:

Avoid using this for internal (i.e. same-site) links as it will break analytics due to the referrer being blocked. Instead just set target="_blank" manually if you want the link to open in a new tab.

Editable Example
Editable Example

Props

The Link component composes the Box component.

NameTypeDefaultDescription
externalbooleanIf true, the link will open in new tab.
externalIconbooleanOverride the automatic logic to display the external icon. If omitted, then it will be shown for links with external or target="_blank".
disabledbooleanIf true, the link will be disabled.
onClickfunctionFunction called when the link is clicked.