Skip to content
Navigation

Link

Text that goes somewhere. Use Button for actions.

import { Link } from "@flinbu/seed";

Inline, external, standalone and subtle

import { Inline, Link, Stack } from "@flinbu/seed";

<Stack gap="sm" className="max-w-md">
  <p className="m-0 text-primary body-body-2-regular">Seed follows <Link href="#">WCAG 2.2 AA</Link> in Light and Dark. Read the <Link href="https://www.w3.org/WAI/WCAG22/quickref/" external>quick reference</Link>.</p>
  <Inline gap="base"><Link href="#" variant="standalone">View the changelog</Link><Link href="#" variant="subtle">Back to tokens</Link></Inline>
</Stack>

Use it for

  • Inline links, Back links, View all.

Props

PropTypeDefaultDescription
variant'default''subtle''standalone''default'Weight.
externalboolean–New tab.
iconIconProp–Leading icon. An element like <Search /> (works in server components) or, in client components, the component itself.
asChildboolean–Style your router Link.

Accessibility

  • external opens a new tab with rel=noopener and says so to screen readers.