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

Menu

Animated Collapsible

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

Import the shared styles once in your application.

TSUsage
import Collapsible from '@/components/beui/primitives/Collapsible.vue'
import '@/components/beui/styles.css'

API Reference

Collapsible

v-model:open?
boolean
Defaultundefined
defaultOpen?
boolean
Defaultfalse
disabled?
boolean
Default—
contentClassName?
string

Layout classes for the inner wrapper, separate from the animated surface.

Default—
class?
string
Default—
@open-change?
(value: boolean) => void
Default—

CollapsibleTrigger

render?
Component | "button"

Reuse a button element or a component that forwards its props and ref to a button.

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

CollapsibleContent

contentClassName?
string

Padding and layout classes for the measured content, inside the clipping wrapper.

Default—
class?
string
Default—

CollapsibleIndicator

class?
string
Default—

Used in these Pro blocks

Updated