A breadcrumb with a collapsible dropdown.
- Home
- Components
- Breadcrumb
Installation
Usage
Examples
Custom separator
Use a custom component as children
for <BreadcrumbSeparator />
to create a custom separator.
A breadcrumb with a custom separator
- Home
- Components
- Breadcrumb
Dropdown
You can compose <BreadcrumbItem />
with a <DropdownMenu />
to create a dropdown in the breadcrumb.
A breadcrumb with a dropdown.
- Home
- Breadcrumb
Collapsed
We provide a <BreadcrumbEllipsis />
component to show a collapsed state when the breadcrumb is too long.
A breadcrumb showing a collapsed state.
- Home
- Components
- Breadcrumb
Link component
To use a custom link component from your routing library, you can use the asChild
prop
on <BreadcrumbLink />
.
A breadcrumb with a custom Link component
- Home
- Components
- Breadcrumb
Responsive
Here's an example of a responsive breadcrumb that composes <BreadcrumbItem />
with <BreadcrumbEllipsis />
, <DropdownMenu />
, and <Drawer />
.
It displays a dropdown on desktop and a drawer on mobile.
A responsive breadcrumb. It displays a dropdown on desktop and a drawer on mobile.
- Home
- Data Fetching
- Caching and Revalidating