A link is text with a hyperlink to either an internal or external page.

Example

⌘ Cmd + ⌥ Option + 1

Properties

propertypropTyperequireddefaultdescription
isDisabledbool-falseDisable link and interactivity
newWindowbool-falseOpen link in new window
childrennodeyes-Text/node that is linked
hrefstring--Href for the anchor element
onClickfunc--Click handler function
styleoneOf 'default' | 'dark' | 'muted' | 'bad-news' | 'reverse'--Link style options
testSectionstring--Hook for automated JavaScript tests

Usage

Use a link when the user needs to go to somewhere else in the application. The user can hold the command or control key while clicking a link to open in a new tab. Consider this when deciding to use a link or a button.

When you're leaving the application, the link should open in a new tab. Otherwise, it should open in the same tab.

Best Practices

Do

Make links short, don't use the full URL.

Use plain language for the link text.

Dont

Use links for actions. Consider using buttons instead.