114
Breadcrumbs that fold their middle crumbs into a menu as space runs out and unfold as it returns, with a last crumb you can rename in place.
akabreadcrumb·breadcrumbs·collapsible breadcrumb
Run this in any project set up for the shadcn CLI. It copies the Overflow Breadcrumb source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/overflow-breadcrumb.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { OverflowBreadcrumb } from "@/components/overflow-breadcrumb";
export default function Page() {
return <OverflowBreadcrumb />;
}A free React component in the Workspace collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Overflow Breadcrumb source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| segmentsrequired | Crumb[] | — |
| onNavigate | (crumb: Crumb, index: number) => void | — |
| onRename | (label: string) => void | — |
| maxCurrentWidth | number | 200 |
| className | string | — |