Example
Use an ordered or unordered list with linked list items to create a minimally styled breadcrumb.
Use our utilities to add additional styles as desired.
vue
<template>
<Breadcrumb>
<BreadcrumbItem active>
Home
</BreadcrumbItem>
</Breadcrumb>
<Breadcrumb>
<BreadcrumbItem to="/">
Home
</BreadcrumbItem>
<BreadcrumbItem active>
Library
</BreadcrumbItem>
</Breadcrumb>
<Breadcrumb>
<BreadcrumbItem to="/">
Home
</BreadcrumbItem>
<BreadcrumbItem
to="/lang-[lang]"
dynamic-route
>
Library
</BreadcrumbItem>
<BreadcrumbItem active>
Data
</BreadcrumbItem>
</Breadcrumb>
</template>
Dividers
Dividers can be changed by modifying a attribute divider
,
vue
<template>
<Breadcrumb divider=">">
<BreadcrumbItem to="/">
Home
</BreadcrumbItem>
<BreadcrumbItem active>
Library
</BreadcrumbItem>
</Breadcrumb>
</template>
You can also use embedded SVG icons.
vue
<template>
<Breadcrumb divider-url="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='currentColor'/%3E%3C/svg%3E">
<BreadcrumbItem to="/">
Home
</BreadcrumbItem>
<BreadcrumbItem active>
Library
</BreadcrumbItem>
</Breadcrumb>
</template>
You can also remove the divider setting divider=""
.
vue
<template>
<Breadcrumb divider="">
<BreadcrumbItem to="/">
Home
</BreadcrumbItem>
<BreadcrumbItem active>
Library
</BreadcrumbItem>
</Breadcrumb>
</template>