Playground
Separator
Basic Breadcrumb
Custom Separator
Collapsed (maxItems)
A 6-item trail collapsed to maxItems=4: first item, an ellipsis, then the last three — keeps the trail scannable without wrapping onto a second line.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items | BreadcrumbItem[] | — | List of items with label and optional destination href link. |
| separator | ReactNode | "/" | Separating glyph/element between breadcrumb nodes. |
| maxItems | number | — | Collapses long trails to the first item + "…" + the last (maxItems - 1) items. |
| className | string | "" | Additional wrapper CSS classes. |
Usage Guidelines
When to use
- Use on pages nested two or more levels deep so users can jump back up the hierarchy in one click.
When not to use
- Don't use on top-level or single-depth pages — an empty or one-item trail adds noise without helping navigation.
- Don't use it as the only navigation on a page — it supplements the Sidebar, not replaces it.