- 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 collapsible component uses the interpolate-size: allow-keywords CSS
property to animate the height of the content. This property is not
supported in all browsers. See the browser
compatibility
Tabs.le for more information.
On This Page