BreadcrumbNew
Where you are and the way back: a long trail folds its middle into "…", which opens the hidden crumbs in place one after another.
Used forFile browsersDocsAdmin panelsShops
Install with the shadcn CLI
Older shadcn CLI, or a network that blocks ui.shadcn.com? Install by URL: shadcn add https://hairlineui.com/r/breadcrumb.json. More
Templates
Need the whole page?
65 Next.js landing pages, each designed from scratch. Try any of them live; one is $39, all of them $159, and 8 are free.
Where it’s used
File browsers
Workspace / Projects / Northwind / Assets.
Docs
Section and page above the title.
Admin panels
Customers / Ada Okafor / Invoices.
Shops
Category trails above a product.
What it handles for you
Breadcrumbs fail on deep trails; folding keeps one line without losing the way back.
Folding middle
First and last two stay; the rest fold into "…".
Opens in place
Widths ease open with a 40ms stagger.
Current page
aria-current="page", not a link.
Links or buttons
href for routing, onClick for app state.
Overview
Long breadcrumbs either wrap onto two lines or cut the middle off for good. Here, past a limit, the middle folds into "…"; pressing it opens the hidden crumbs in place, each easing its width open with a short stagger. The last crumb is the current page, not a link.
States
- folded
- "…" stands in for the middle crumbs.
- opened
- Each hidden crumb's width eases open (380ms, 40ms apart) and fades in.
Usage
Props
- items
- Crumb[]
- label, href, icon, onClick.
- max= 4
- number
- Crumbs before the middle folds.
Accessibility and motion
- A nav landmark labelled "Breadcrumb" with an ordered list.
- Reduced motion: the crumbs appear at once.
Requirements
React 19, Tailwind CSS v4 and shadcn/ui theme variables (any style, light and dark). Icons from lucide-react.
Source
Registry item: /r/breadcrumb.json


