When to use
Section titled “When to use”Breadcrumbs show where the current page sits in the hierarchy and let users return to a higher level in one click. Use them in structures with three or more levels, such as settings pages and nested record screens.
When not to use
Section titled “When not to use”- For main navigation: Primary navigation between pages belongs in the sidebar (AppShell).
- For sections of the same page: Use Tabs to switch between sections.
- In single-level structures: With no parent page the trail tells the user nothing; leave it out.
- For sequential steps: Use a Stepper when the order of steps matters.
Anatomy
Section titled “Anatomy”import { Breadcrumbs, Provider } from '@bigbang/ui';
export default function Default() { return ( <Provider locale="en-GB"> <Breadcrumbs items={[ { label: 'Home', href: '#home' }, { label: 'First level', href: '#first' }, { label: 'Current page' }, ]} /> </Provider> );}- Navigation landmark (
nav): Named witharia-label; the default name is “Breadcrumb”. - Item: One entry in the ordered list; every item except the first has a separator before it.
- Separator: A right-pointing chevron; hidden from screen readers and mirrored in right-to-left languages.
- Link: The Link component (
standalone,sm). - Current page: Plain text without a link; carries
aria-current="page". - Collapse button: A “…” button that stands in for the hidden middle items of a long trail.
Behaviour
Section titled “Behaviour”itemsrun from the top level to the current page; the last item is the current page.- When the item count passes
maxItems, the first item, the “…” button and the lastmaxItems - 1items are shown. - The “…” button expands the trail in place without opening a menu. The new items enter with a short fade and a 4 px rise, focus moves to the first revealed link, and the button disappears.
- Below 640 px only a link to the parent page is shown, with a left-pointing chevron before it. The full trail is hidden.
- Links check
href; unsafe schemes such asjavascript:are removed. - Pass
renderto use a router link.
Guidelines
Section titled “Guidelines”- Keep labels the same as the page titles, so users do not see two names for one page.
- Pass the whole trail. Do not skip middle levels yourself; leave folding to the component.
- Do not give the last item an
href; the current page is not a link. - Place the trail above the page title and use one per page.
- Do not shorten long labels; for now they wrap onto several lines.
Content
Section titled “Content”- Labels are page names; do not use verbs and do not end with a full stop.
- Do not type the separator (
/,>) in the text; the component adds it.
| Turkish | English |
|---|---|
| Ana sayfa | Home |
| Birinci düzey | First level |
| Geçerli sayfa | Current page |
| Konum | Breadcrumb |
| Gizlenen konumları göster | Show hidden locations |
Related components
Section titled “Related components”- Link: The basis of the links in the trail.
- PageHeader: Holds the trail together with the page title.
- Tabs: Switch between sections of the same page.