
- Location:
sabo/src/components/ui/breadcrumb.tsx
When to use
- Show users where they are within a hierarchy; provide quick back navigation.
- Use for multi-level navigation (e.g., Home > Category > Product).
Usage
Key parts
BreadcrumbLink
Renders a clickable link for intermediate items.
BreadcrumbPage
Renders the current page (non-clickable,
aria-current="page").BreadcrumbSeparator
Visual separator between items (e.g.,
/ or >).BreadcrumbEllipsis
Collapsed items indicator for long trails; includes a screen‑reader label.
Styling tip
Use concise labels and consider collapsing middle segments on small screens.Accessibility
BreadcrumbListis a<nav>witharia-label="breadcrumb".BreadcrumbPagehasaria-current="page"for the current location.- Screen readers announce the full trail; keep labels descriptive.