- Documentation
- Components
- Accordions
Accordions
Fold away detail until the reader asks for it with Accordion and AccordionGroup.
An accordion is a title that opens to reveal text. Wrap several in AccordionGroup to space them as one block.
Where do my pages live?
In your GitHub repo. Specly reads them when you push.
Rate limitsPer endpoint, by type
Each endpoint has its own limit.
<AccordionGroup> <Accordion title="Where do my pages live?" defaultOpen> In your GitHub repo. Specly reads them when you push. </Accordion> <Accordion title="Rate limits" icon="gauge" description="Per endpoint, by type"> Each endpoint has its own limit. </Accordion></AccordionGroup>An accordion is a native HTML disclosure, so it works without JavaScript and by keyboard.
Accordion props
Section titled “Accordion props”titlestringrequired- The text that is always visible.
descriptionstring- A smaller line beside the title.
iconstring- A Lucide or Font Awesome name, shown before the title.
defaultOpenboolean- Starts the accordion open.
AccordionGroup takes no props.