Collapsible
Collapsible content section featuring a header with a title and a trigger button, along with a panel that holds the content.
Basic
An accordion functions as a vertical stack of headers that expand to reveal or conceal content sections.
Installation
npx hq-kit add disclosure
Disabled
You can disable all collapsible by setting the isDisabled
prop.
Controlled
You can control the collapsible by using the isExpanded
prop.
The Collapsible is collapsed.
Accordion
If you're looking for a more advanced accordion, check out the Accordion component.