- Docs
- Components
- Collapsible
Collapsible
An interactive component which expands/collapses a panel.
Preview
Code
Installation
CLI
Manual
Anatomy
Single import
Multiple imports
Trigger
You can use the <Collapsible.Trigger /> component to create a button that toggles the visibility of the collapsible content,
or you can use the <Button /> component as the trigger by passing it a slot="trigger" prop.
Animation
The accordion uses the --disclosure-panel-height CSS variable to animate the height of the content area.
On This Page