Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Animated Breadcrumb

Preview

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/breadcrumb

Import the shared styles once in your application.

TSUsage
import Breadcrumb from '@/components/beui/controls/Breadcrumb.vue'
import '@/components/beui/styles.css'

API Reference

Breadcrumb

class?
string
Default—
items?
readonly BreadcrumbCrumb[]

Ready-made path, in order; the last entry is the current page. Omit it to compose the parts yourself.

Default—
maxItems?
number

Maximum visible slots, including the ellipsis (with `items`). Minimum 3; Infinity disables collapsing.

Default4
label?
string

Accessible name of the navigation landmark.

Default—
labels?
Partial<BreadcrumbMessages>

Override any built-in string.

Default—
@navigate?
(item: BreadcrumbCrumb, index: number, event: MouseEvent) => void
Default—
#default?
slot

Compose the parts: a `BreadcrumbList` of `BreadcrumbItem`s. Ignored when `items` is given.

Default—
#icon?
slot

Icon inside a crumb of the ready-made path.

Default—

BreadcrumbList

class?
string
Default—
maxItems?
number

Maximum visible slots, including the ellipsis. Minimum 3; Infinity disables collapsing.

Default4
overflowLabel?
string

Accessible label for the hidden ancestor disclosure.

Default—
#default?
slot

The `BreadcrumbItem`s, in path order.

Default—

BreadcrumbLink

class?
string
Default—
as?
string | Component

Element or component to render, for a router link. Everything else falls through to it.

Defaulta
#default?
slot
Default—

BreadcrumbPage

class?
string
Default—
#default?
slot
Default—

BreadcrumbSeparator

class?
string
Default—
#default?
slot

Replaces the chevron.

Default—

BreadcrumbEllipsis

#default?
slot

The hidden `BreadcrumbItem`s.

Default—
class?
string
Default—
label?
string

Accessible name of the disclosure button.

Default—

BreadcrumbItem

class?
string
Default—
#default?
slot
Default—

Updated