Collapse
A panel that folds under its trigger. A button and a region, not <details>: the height animates and the state is the button's aria-expanded. Stack several in an Accordion.
| Class | Effect | Type |
|---|---|---|
.collapse | The frame; two grid rows, the second folding from 0fr to 1fr. | root |
.collapse-ghost | Sets variant, one class per value. | axis variant |
.collapse-arrow | Written by the arrow prop. | flag |
.collapse-plus | Written by the plus prop. | flag |
.collapse-inner | The padding inside the panel (the panel itself must stay unpadded to fold to zero). | part |
.collapse-panel | The region that folds; inert when closed. | part |
.collapse-trigger | The button. Its aria-expanded is the state the stylesheet reads. | part |