Menu
Breadcrumb
Where the page sits in a hierarchy: a trail of links with the current page last and separators in between.
WAI-ARIA tested
Import
main.ts
import { Breadcrumb } from '@vitral/vue';With a home item
Icons and a custom separator
API
Read from packages/vue/src/components/Breadcrumb/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| model | BreadcrumbItem[] | The trail, root first; the last item is the current page. |
| home | BreadcrumbItem | An item before the trail. Shows the home icon when it has neither label nor icon. |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| item | (props: { item: BreadcrumbItem; label: string | undefined; current: boolean }) | An item's content: its icon and label. The link or button around it stays. |
| separator | — | Replaces the chevron between items. |