Skip to content

Link

The Link component styles anchor tags with default hyperlink color cues 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 a less prominent shade for Link color, and the default link shade on hover
underlineBooleanfalseAdds underline to the Link
asString'a'Can be 'a', 'button', 'input', or 'summary'
hoverColorStringColor used when hovering over link
Edit this page on GitHub
3 contributorsVanAndersonemplumsdmarcey
Last edited by VanAnderson on March 4, 2021