Animated Collapsible

Preview

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/collapsible

API Reference

Collapsible

open?
boolean
Default—
defaultOpen?
boolean
Defaultfalse
onOpenChange?
((open: boolean) => void)
Default—
disabled?
boolean
Defaultfalse
contentClassName?
string

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

Default—
className?
string
Default—

CollapsibleTrigger

render?
ReactElement<unknown, string | JSXElementConstructor<any>>

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

Default—
className?
string
Default—

CollapsibleContent

contentClassName?
string

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

Default—
className?
string
Default—

CollapsibleIndicator

className?
string
Default—

Updated