R

Collapsible

3 parts

Anatomy

Import the parts and compose them. Each part forwards attributes to its underlying element.

vue
import {
  CollapsibleRoot,
  CollapsibleTrigger,
  CollapsibleContent,
} from '@robonen/primitives/collapsible';

<CollapsibleRoot>
  <CollapsibleTrigger />
  <CollapsibleContent />
</CollapsibleRoot>

API Reference

CollapsibleRoot

Root
PropTypeDescription
defaultOpen?boolean
disabled?boolean

CollapsibleTrigger

Trigger

No props or events — renders its element and forwards attributes.

CollapsibleContent

Content
PropTypeDescription
forceMount?booleanRender the content even when closed (useful for animation control).