← Components/primitives

Link

Carbon-spec text link. Three sizes, two visual variants (default, inline). Renders `<a>` by default; use `asChild` to pass through to Next.js `<Link>` or React Router.

primitivesstablea11y: untested2/3 coverageEdit on GitHub ↗
primitives-link--defaultOpen all variants →

When to use

  • Inline navigational links inside prose / table rows / list rows.
  • Wrap framework router primitives via asChild: <Link asChild><NextLink href=…>.

When not to use

  • Action triggers (submit, save, delete) → use `Button`. Links navigate; buttons act.
  • Icon-only navigational triggers → use `IconButton`.