Breadcrumb
Where the page sits in the site: the path of links above it, with the current page last.
Installation
Or with the shadcn CLI, from the registry:
Usage
A router link
BreadcrumbLink is an <a>; give your router's link in render and it keeps the styles:
Separators and collapsed levels
BreadcrumbSeparator shows a chevron, or its children. BreadcrumbEllipsis stands for levels left out of a long
path; put it in a DropdownMenuTrigger to list them, as in the demo at the top.
Villages
The path is in the muted ink and the current page in the foreground, in every village.
Accessibility
- A
<nav>landmark named "Breadcrumb" (change it witharia-label), holding an ordered list. - The current page is not a link and carries
aria-current="page". - Separators are hidden from screen readers; the ellipsis is read as "More pages".
API reference
| Component | Element | Notes |
|---|---|---|
Breadcrumb | <nav> | aria-label defaults to "Breadcrumb" |
BreadcrumbList | <ol> | |
BreadcrumbItem | <li> | |
BreadcrumbLink | <a> | render for another element (through Base UI's useRender) |
BreadcrumbPage | <span> | aria-current="page" |
BreadcrumbSeparator | <li> | Children replace the chevron |
BreadcrumbEllipsis | <span> |