Patterns
Breadcrumb
Hierarchical page location trail; the last item is the current page (non-linked)
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 | |
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. |
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' },
]}
/>