Disclosure | Collapsible
An interactive UI component that expands or collapses content sections, improving accessibility and user experience.
Basic
An accordion functions as a vertical stack of headers that expand to reveal or conceal content sections.
Installation
If you hit any issues, make sure you check out the installation guide here for more information.
Manual Installation
Make sure you also install the composed components and the required packages for the component to function properly.
Anatomy
Disabled
You can disable all disclosure by setting the isDisabled
prop.
Controlled
You can control the disclosure by using the isExpanded
prop.
Accordion
If you're looking for a more advanced accordion, check out the Disclosure Group component.