Breadcrumbs
Alignment target:@astryxdesign/core v0.7.1 · Breadcrumbs
Breadcrumbs Props #
| Name | Type | Default | Description |
|---|---|---|---|
separator | string | '/' | Decorative separator between items. |
variant | BreadcrumbsVariant | 'default' | Visual variant. Optional: default, supporting. |
label | string | 'Breadcrumb' | Accessible label for the nav landmark. |
Breadcrumbs Slots #
| Name | Description |
|---|---|
default | List of BreadcrumbItem elements. |
BreadcrumbItem Props #
| Name | Type | Default | Description |
|---|---|---|---|
href | string | - | Link URL. Renders as a button when omitted. |
as | string | Component | 'a' | Link root component, such as a router link. Used instead of a for items that have an href and are not current. |
isCurrent | boolean | — | Whether this is the current page. true renders a <span> with aria-current="page"; a current crumb can still open a menu. When omitted and no item is true, the last item on the page becomes current: it stays a link and gains aria-current="page" and the current style. false opts the item out of that detection. |
menu | BreadcrumbMenuOption[] | - | Turns the crumb into a menu trigger. The array matches the dropdown menu's data entries, including checkbox rows and radio groups. Mutually exclusive with a link, which is ignored when a menu is set. Ignored when the menu slot is used. |
menuSize | 'sm' | 'md' | 'lg' | sm on the supporting variant, otherwise md | Size of the menu rows. |
BreadcrumbItem Slots #
| Name | Description |
|---|---|
default | Breadcrumb label text. |
startIcon | Icon rendered before the label. The built-in icon component can go here. |
menu | Menu content written by hand, including checkbox and radio rows. The components are BreadcrumbMenuCheckboxItem, BreadcrumbMenuRadioGroup, and BreadcrumbMenuRadioItem. When this slot is set, the menu array is not used. |
BreadcrumbItem Events #
| Name | Description |
|---|---|
click | Emitted when clicked. Not emitted for the current page. |