Breadcrumb
Shows where the current page sits in the site.
Staticimport { Breadcrumb } from 'umbra-ui'
Props
Breadcrumb
| Prop | Type | Default | Description |
|---|---|---|---|
aria-label | string | Breadcrumb | Accessible name of the navigation landmark. |
BreadcrumbItem
| Prop | Type | Default | Description |
|---|---|---|---|
asChild | boolean | false | Renders your own link component (e.g. Next.js `Link`) as the child. |
current | boolean | false | Marks 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
navlandmark named "Breadcrumb" (change it witharia-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