Breadcrumbs

Alignment target:@astryxdesign/core v0.7.1 · Breadcrumbs

NameTypeDefaultDescription
separatorstring'/'Decorative separator between items.
variantBreadcrumbsVariant'default'Visual variant. Optional: default, supporting.
labelstring'Breadcrumb'Accessible label for the nav landmark.
NameDescription
defaultList of BreadcrumbItem elements.
NameTypeDefaultDescription
hrefstring-Link URL. Renders as a button when omitted.
asstring | Component'a'Link root component, such as a router link. Used instead of a for items that have an href and are not current.
isCurrentboolean—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.
menuBreadcrumbMenuOption[]-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 mdSize of the menu rows.
NameDescription
defaultBreadcrumb label text.
startIconIcon rendered before the label. The built-in icon component can go here.
menuMenu 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.
NameDescription
clickEmitted when clicked. Not emitted for the current page.