Breadcrumbs
Basic trail
Section titled “Basic trail”Pass an items array of objects. The final item without an href is treated as the current page.
import { Breadcrumbs } from '@eekodigital/raster';
<Breadcrumbs
items={[
{ label: 'Home', href: '/' },
{ label: 'Reports', href: '/reports' },
{ label: 'Annual report 2024' },
]}
/> Single item
Section titled “Single item”When the user is at the top level, a single item is sufficient.
<Breadcrumbs items={[{ label: 'Dashboard' }]} /> Longer trail
Section titled “Longer trail”<Breadcrumbs
items={[
{ label: 'Home', href: '/' },
{ label: 'Compliance', href: '/compliance' },
{ label: 'Audits', href: '/compliance/audits' },
{ label: '2024', href: '/compliance/audits/2024' },
{ label: 'Q1 review' },
]}
/> | Prop | Type | Default | Description |
|---|---|---|---|
items | Array<{ label: string; href?: string }> | — | Ordered list of crumbs. Items with an |
className | string | — | Additional CSS class names on the outer |