bloxa

Breadcrumb

FREE

Location trail with a collapsible middle, icons, separators and BreadcrumbList structured data.

Installation

Terminal
npx @bloxa/cli add breadcrumb
# or: npx shadcn@latest add @bloxa/breadcrumb

Packages installed automatically: radix-ui

Examples

Icons, separators and collapse

API reference

Every component also accepts the props of the element it renders.

Breadcrumb

PropTypeDefaultDescription
items{ label, href?, icon? }[]—Trail; the last item is the current page.
separator"chevron" | "slash" | "dot" | ReactNode"chevron"Separator.
maxItemsnumber4Above this, the middle collapses into a menu.
renderLink(item, children) => ReactNode—Router link.