Accordion
Set of interactive collapsible sections.
Preview
Yes. It adheres to the WAI-ARIA design pattern.
Displays single expanded item at once. Controllable by defaultValue prop.
Installation
bash
npx sigma-ui add accordionExamples
Basic
Displays single item, collapsed by default (no defaultValue or v-model props specified).
Multiple
Yes. It adheres to the WAI-ARIA design pattern.
It's minimally styled, giving you freedom to easily customize it to your design system.
Displays multiple expanded items at once. Controllable programmatically by v-model.
Notes
Use
defaultValueprop to simply define the open item by default or usev-modelprop to fully control the opened item(s) programmatically.To display multiple expanded items at once, use
v-model: string[]andtype="multiple".To display single expanded item at once, use
v-model: stringandtype="single".
Sponsors
Support this project