Skip to content
  • System
  • Light
  • Dark
  • High contrast

Breadcrumbs

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' },
  ]}
/>

When the user is at the top level, a single item is sufficient.

<Breadcrumbs items={[{ label: 'Dashboard' }]} />
<Breadcrumbs
  items={[
    { label: 'Home', href: '/' },
    { label: 'Compliance', href: '/compliance' },
    { label: 'Audits', href: '/compliance/audits' },
    { label: '2024', href: '/compliance/audits/2024' },
    { label: 'Q1 review' },
  ]}
/>
PropTypeDefaultDescription
itemsArray<{ label: string; href?: string }>

Ordered list of crumbs. Items with an href are rendered as links; the last item is typically the current page (no href).

classNamestring

Additional CSS class names on the outer <nav> element.