Elements

Reference

Collapsible

Collapsible, dressed in the paper-and-ink system: one control on the paper, its panel dissolving open to the machine's measured height. The parts — Root, Trigger, Content, Indicator.

Root · Trigger · Content · Indicator

#Content

A styled part — no props of its own; it takes the anatomy's shared styling.

#Indicator

A styled part — no props of its own; it takes the anatomy's shared styling.

#Root

PropTypeDefaultDescription
collapsedHeightnumber | stringThe height of the content when collapsed.
collapsedWidthnumber | stringThe width of the content when collapsed.
defaultOpenbooleanThe initial open state of the collapsible when rendered. Use when you don't need to control the open state of the collapsible.
disabledbooleanWhether the collapsible is disabled.
idstringThe unique identifier of the machine.
idsPartial<{ root: string; content: string; trigger: string; }>The ids of the elements in the collapsible. Useful for composition.
lazyMountbooleanfalseWhether to enable lazy mounting
openbooleanThe controlled open state of the collapsible.
unmountOnExitbooleanfalseWhether to unmount on exit.
EventPayload
exitComplete—
openChangedetails: OpenChangeDetails
update:openopen: boolean

#Trigger

A styled part — no props of its own; it takes the anatomy's shared styling.