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

Menu

Bouncy Accordion

Preview

Plan announcements, staging checks, reminders, and quiet periods around the same timeline.

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/bouncy-accordion

Import the shared styles once in your application.

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

API Reference

items
readonly Item[]
Default—
v-model?
string | null
Default—
defaultValue?
string | null

Open row when uncontrolled (no `v-model`).

Defaultnull
collapsible?
boolean

Allow closing the open row by activating it again.

Defaulttrue
class?
string
Default—
classNames?
{ root?: string; item?: string; trigger?: string; icon?: string; title?: string; chevron?: string; content?: string; description?: string }
Default—
#default?
slot

Panel content of a row. Falls back to the item's `description`.

Default—
#title?
slot

Row title. Falls back to the item's `title`.

Default—
#icon?
slot

Leading icon of a row. Falls back to the item's `icon` text.

Default—
Also on React Native. FAQ rows that spring apart as they open.(opens in a new tab)

Updated