Collapsible

Single-item disclosure on bits-ui Collapsible. The content uses the same height-based expand/collapse as Accordion, honors reduced-motion, and leaves the DOM in place while closed.

Usage

@kchn starred 3 repositories

bloom-nx

Controlled

Bind open to drive the disclosure externally.

open = false

Collapsible.Root props

Inherits bits-ui Collapsible.Root props.

PropTypeDescription
boolean (bindable)Controlled open state. Two-way bindable.
booleanDisables the trigger.
(open: boolean) => voidFires whenever the open state changes.
stringMerged onto the root via tailwind-merge.

Collapsible.Trigger / Content props

PropTypeDescription
Snippet<[{ props }]>Render-prop escape hatch for composing the trigger with any element (Button, anchor, etc.).
booleanKeeps Content in the DOM while closed. Useful for animating both directions or for SEO-visible content.