navigationbreadcrumb
Breadcrumb
Breadcrumb navigation trail with separator icons and optional wrapping.
Import#
Slot Structure#
Ordered navigation list with links and separators between items.
Examples#
Default#
Simple breadcrumb trail with active last item.
Sizes#
Different size.
Custom Separator + Disabled#
Use an alternative separator and mark links as disabled.
Wrapping#
Toggle wrapping behavior for long breadcrumb labels.
API Reference#
Attributes#
Slot
root5 attributesNavigation container for the breadcrumb trail.
Data Attributes
| Data Attribute | Description |
|---|---|
| data-orientation | Stores the rendered orientation. |
| data-size | Stores the resolved size variant. |
| data-variant | Stores the resolved visual variant. |
ARIA Attributes
| ARIA Attribute | Description |
|---|---|
| aria-label | Provides an accessible label when visible text is not sufficient. |
| role | Defines the semantic role exposed to assistive technology. |
Props#
| Prop | Type | Default | Description |
|---|---|---|---|
| class | ClassValue | — | Class applied to the component root or trigger element. |
| classes | BreadcrumbT.Classes | undefined | — | — |
| itemRender | ComponentOrElement<BreadcrumbT.ItemRenderProps> | undefined | — | Custom renderer for individual breadcrumb items. |
| items | BreadcrumbT.Item[] | undefined | — | Array of breadcrumb items to display. |
| ref | JSX.HTMLElementTags["nav"] extends { ref?: infer Ref; } ? Ref : never | undefined | — | — |
| separator | IconT.Name | icon-chevron-right | Icon name for the separator between items. |
| size | "xs" | "sm" | "md" | "lg" | "xl" | undefined | md | Size of the breadcrumb items and icons. |
| style | JSX.CSSProperties | undefined | — | — |
| styles | BreadcrumbT.Styles | undefined | — | — |
| wrap | boolean | undefined | — | — |
Items#
An individual item in the breadcrumb trail.
| Prop | Type | Default | Description |
|---|---|---|---|
| active | boolean | undefined | — | Whether the item is the current active page. |
| disabled | boolean | undefined | — | Whether the item is disabled. |
| href | string | undefined | — | The destination URL for this item. |
| icon | IconT.Name | — | Icon to display next to the label. |
| label | JSX.Element | — | Label to display for the breadcrumb item. |
| onClick | JSX.EventHandlerUnion<HTMLAnchorElement, MouseEvent> | undefined | — | Callback when the item is clicked. |
| rel | string | undefined | — | Relationship of the linked URL to the current document. |
| target | string | undefined | — | Where to display the linked URL. |
| to | string | undefined | — | The destination URL for this item. |