Breadcrumbs
Provides a navigational aid that displays the user's current location within a hierarchy and allows easy navigation to previous levels with automatic level detection.
Component
Props
| Props | Default | Type |
|---|---|---|
showHome | true | boolean |
homeIcon | 'mdi:home-outline' | string |
separatorIcon | 'mdi:chevron-right' | string |
includeCurrent | false | boolean |
customRoute | null | string | null | undefined |
homeIconClass | '' | string |
separatorClass | '' | string |
crumbClass | '' | string |
currentCrumbClass | '' | string |
Usage
showHome
Determines whether to display the home icon at the beginning of the breadcrumbs.
<template>
<Breadcrumbs showHome />
</template>
homeIcon
Specifies the icon to be used for the home link in the breadcrumbs.
<template>
<Breadcrumbs homeIcon="mdi:home-outline" />
</template>
separatorIcon
Specifies the icon to be used as a separator between breadcrumb items.
<template>
<Breadcrumbs separatorIcon="mdi:chevron-right" />
</template>
includeCurrent
Determines whether to include the current page in the breadcrumb trail.
<template>
<Breadcrumbs :includeCurrent="false" />
</template>
customRoute
Allows you to specify a custom route for generating breadcrumbs instead of using the current route.
<template>
<Breadcrumbs customRoute="/custom/path" />
</template>
homeIconClass
Applies custom CSS classes to the home icon.
<template>
<Breadcrumbs homeIconClass="custom-home-icon" />
</template>
separatorClass
Applies custom CSS classes to the separator icon.
<template>
<Breadcrumbs separatorClass="custom-separator" />
</template>
crumbClass
Applies custom CSS classes to each breadcrumb item.
<template>
<Breadcrumbs crumbClass="custom-crumb" />
</template>
currentCrumbClass
Applies custom CSS classes to the current breadcrumb item.
<template>
<Breadcrumbs currentCrumbClass="custom-current-crumb" />
</template>