Skip to main content

Link

The Link component implements the Typography component, but requires an href and will always render an <a> tag.

Examples

<Link href="./">A link</Link>

With multiple sizes

With a router library

import { Link: RouterLink } from 'react-router-dom';
<Link as={RouterLink} to="./">A router link</Link>;

Props

NameTypeDefault ValueRequiredDescription
italicbooleanfalseNoDisplay the text with emphasis?
size"body" | "caption" | "h1" | "h2" | "h3" | "meta" | "inherit" | TypographySize | "d1" | "d1-alt" | "d2" | "subhead" | "body-lg" | "body-sm" | "cta"TypographySize.BodyNoHow large should the text be? This also affects the font-face for display text.
weight"medium" | "light" | "bold" | TypographyWeight | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "thin" | "normal" | "extrabold" | "black"TypographyWeight.NormalNoHow heavy should the text be?