An interactive component which expands/collapses a panel.
Full keyboard navigation.
Can be controlled or uncontrolled.
Install the component from your command line.
Import the components and piece the parts together.
Contains all the parts of a collapsible.
The button that toggles the collapsible.
The component that contains the collapsible content.
Use the --radix-collapsible-content-width
and/or --radix-collapsible-content-height
CSS variables to animate the size of the content when it opens/closes. Here's a demo:
Adheres to the Disclosure WAI-ARIA design pattern.