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 is='button'>. Make sure to provide a click handler with onClick.

Default example

<Link mb={1} href="https://github.com">Link</Link>

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
underlineBooleanfalseAdds underline to the Link
isString'a'Can be 'a', 'button', 'input', or 'summary'
Edit this page on GitHub