A section whose trigger shows and hides its panel.
Installation
Examples
Default
It counts as a section of the Card that holds it, so a card opens to its details. A chevron in the trigger turns with group-data-open/collapsible:rotate-90. The panel slides open, and find-in-page opens it.
For a trigger that holds buttons, render a div with nativeButton={false}.
demo.tsx
- Exposure +0.35
- Temperature +12
- Shadows +20
- Aspect 3:2
- Angle 1.5°
Sections in the panel
Like a card, the panel hands its padding to the Sections it holds; defaultOpen shows this one open.
sections.tsx
Exposure +0.35Temperature +12Shadows +20
Anatomy
Each part's data-slot, which a theme styles, is beside it.
bun add @roprgm/ui