Link

Hyperlinks between pages.

General

Highlight

Distinguish links with different colors.

With Icon

Show an icon in the link.

Variant

Different styles of links.

Block

Display as a separate block.

With the Next.js router

Keep the href, so the link works in a new tab, and navigate with the router on click.

APIs

Link.Props

AttributeDescriptionTypeAccepted valuesDefault
hreflink urlstring--
colordisplay color for linkboolean-false
iconshow iconboolean-false
underlinedisplay underlineboolean-false
blockdisplay as a separate blockboolean-false
refforwardRefRef<HTMLAnchorElement | null>--
...native propsAnchorHTMLAttributes'rel', 'target', ...-
Edit this page on GitHub