Breadcrumb
Navigation breadcrumb trail with links, current-page indicator, and an optional click callback for custom routing.
npx @slipstream-ui/cli@latest add breadcrumbCustom routing via onItemClick
Click Home or Docs — routing is intercepted by the callback.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items | BreadcrumbItem[] | — | Ordered breadcrumb items; the last is the current page. |
| separator | ReactNode | '/' | Separator character between items. |
| onItemClick | (item, index) => void | — | Receives every link click and prevents default navigation — route with your own router, state machine, or analytics. |
Accessibility
- nav[aria-label=Breadcrumb] landmark for screen readers.
- Last item has aria-current=page.
- onItemClick intercepts activation only — keyboard activation (Enter) fires it too.
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+ — macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA — the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.