Umbra UI

Breadcrumb

Shows where the current page sits in the site.

Staticimport { Breadcrumb } from 'umbra-ui'

Props

Breadcrumb

PropTypeDefaultDescription
aria-label stringBreadcrumbAccessible name of the navigation landmark.

BreadcrumbItem

PropTypeDefaultDescription
asChild booleanfalseRenders your own link component (e.g. Next.js `Link`) as the child.
current booleanfalseMarks the current page: rendered as text with `aria-current="page"` instead of a link.

Usage notes

Mark the last item current. To use a router link, pass asChild and put your link inside:

<BreadcrumbItem asChild>
  <Link href="/docs">Docs</Link>
</BreadcrumbItem>

Accessibility

  • A nav landmark named "Breadcrumb" (change it with aria-label) around an ordered list.
  • The current page has aria-current="page" and is not a link.
  • Separators are drawn in CSS and hidden from screen readers.

Import

import { Breadcrumb, BreadcrumbItem } from 'umbra-ui';
import 'umbra-ui/styles.css'; // once, at the root of your app