AisBreadcrumb
AisBreadcrumb is a component that displays the current page location within a navigational hierarchy. It is used to show the user's current location within the application and to provide a clickable path back to the root page.
Use the crumbs prop to pass an array of crumb objects. The crumb object can have the following attributes:
javascript
{
label: 'Crumb Label',
icon: 'users',
to: '/some/path',
href: '/some/path'
current: true
}Label and Icon
The label attribute sets the text of the crumb. The icon attribute sets the icon that will be displayed next to the label of the breadcrumb. It accepts either an object imported from the FontAwesome icon packs or a string specifying one of the preloaded, core icons.
Links
Use the to attribute set the path when using vue/nuxt routing. Otherwise use the href attribute.
Current Breadcrumb
If the current page is represented in the list of breadcrumbs, the current attribute should be set to true. The accessibility attribute aria-current will be set to page.
Delimiter
Use the delimiter prop to customize the delimiter between each breadcrumb. The default value is >.
Component Reference
Props
Property | Type(s) | Required | Default | Description | Deprecated |
|---|---|---|---|---|---|
| crumbs | Array | [] | Collection of breadcrumb objects. Attributes on a breadcrumb object: `label`, `icon`, `to`, `href`, `current` | false | |
| delimiter | String | '>' | Sets the delimiter between each breadcrumb | false |
Slots
Name | Scoped | Description |
|---|---|---|
| default | No | Slot to customize the breadcrumb label |
Events
Event | Arguments | Description |
|---|---|---|