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

Menu

Bounce Sidebar

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/bounce-sidebar

Import the shared styles once in your application.

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

API Reference

items
readonly BounceSidebarItem[]
Default—
v-model?
string
Default—
defaultValue?
string

Initial selection when `v-model` is not used.

Default—
@value-change?
(value: string) => void
Default—
ariaLabel?
string

Accessible name of the navigation landmark.

Default—
labels?
Partial<{ label: string }>

Override any built-in string.

Default—
className?
string
Default—
listClassName?
string
Default—
itemClassName?
string
Default—
indicatorClassName?
string
Default—
label?
string

Same as `ariaLabel`.

Default—
#icon?
{ item: BounceSidebarItem; index: number }

Icon before the label; replaces the item's `icon` text.

Default—
#label?
{ item: BounceSidebarItem; index: number }

Label of a row; replaces the item's `label`.

Default—

Updated