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

Menu

Dock

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/dock

Import the shared styles once in your application.

TSUsage
import Dock from '@/components/beui/layout/Dock.vue'
import '@/components/beui/styles.css'

API Reference

Dock

class?
string
Default—
size?
number

Size of each item in px.

Default44
items?
readonly Item[]

Optional data-driven items. Omit to compose `DockItem` and `DockSeparator` in the default slot.

Default—
label?
string

Accessible name when the dock is data-driven.

DefaultDock
v-model?
string
Default—

DockItem

class?
string
Default—
@click?
(event: MouseEvent) => void

Pressing the item. Passing a listener also renders the item as a `<button>`; omit it when children carry their own link or button.

Default—
active?
boolean

Marks the item as the current one and slides the shared pill to it.

Defaultundefined
aria-label?
string
Default—

DockSeparator

class?
string
Default—

Updated