Patterns
Breadcrumb
Hierarchical page location trail; the last item is the current page (non-linked)
Markdown version for agents · 6 stories in Storybook(opens in a new tab)
import { Breadcrumb } from '@amezquita/design-system/components/patterns/Breadcrumb'Live render
Props
| Prop | Type | Description |
|---|---|---|
items | { label: string; href?: string }[] | |
separator? | React.ReactNode | |
className? | string | |
aria-label? | string | Names the <nav> landmark. Defaults to "Breadcrumb"; give each breadcrumb on a page a different name. |
LinkComponent? | React.ElementType<{ href: string; className?: string; children?: React.ReactNode }> | Component to render internal links with — pass your router's Link (e.g. next/link) to get client-side navigation. Defaults to a plain <a>, which works anywhere with a full navigation. |
Also accepts all props of: Omit<React.ComponentPropsWithoutRef<'nav'>, 'children'>
Tokens
| Token | Type | Value |
|---|---|---|
--breadcrumb-current-max-width | dimension | 240px |
--breadcrumb-font-size | dimension | 14px |
--breadcrumb-item-max-width | dimension | 200px |
Usage example
<Breadcrumb
items={[
{ label: 'Home', href: '/' },
{ label: 'Products', href: '/products' },
{ label: 'Design System' },
]}
/>