A trail of links from the top level to the current page; the ref, className, style and other attributes go to the nav.
A Markdown brief for Claude, Cursor or v0: install, setup, props and a complete example.
For showing where a page sits in a deep hierarchy, with a way back up.
A flat app with a few sections? Leave them out.
A labeled navigation with an ordered list; the current page is marked with aria-current="page".
import { Breadcrumbs } from '@idyeah/diya'Stable since 1.0.0
itemsRequiredBreadcrumbItem[]The trail from the top level to the current page; the last item is the current page and is not a link.
collapsedbooleanWith more than three items, folds the middle ones into a "More pages" menu.
Default false
onNavigate(item: BreadcrumbItem) => voidHandles plain left-clicks and menu picks in the app instead of following href; modified clicks still open the link. Without it, items are links through the provider's linkComponent.
showHomeIconbooleanReplaces the first item's text with a home icon; its label stays as the accessible name.
Default false
Also takes every native <nav> attribute, such as id, aria-* or data-*.