Link

The Link component styles anchor tags with default blue styling and hover text decoration. Link is used for destinations, or moving from one page to another.

In special cases where you'd like a <button> styled like a Link, use <Link as='button'>. Make sure to provide a click handler with onClick.

Important: When using the as prop, be sure to always render an accessible element type, like a, button, input, or summary.

Default example

System props

Link components get COMMON and TYPOGRAPHY system props. Read our System Props doc page for a full list of available props.

Component props

NameTypeDefaultDescription
hrefStringURL to be used for the Link
mutedBooleanfalseUses light gray for Link color, and blue on hover
underlineBooleanfalseAdds underline to the Link
asString'a'Can be 'a', 'button', 'input', or 'summary'
Edit this page on GitHub
2 contributorsdmarceyemplums
Last edited by dmarcey on September 30, 2019