Accordion

Set of interactive collapsible sections.

Preview

Displays single expanded item at once. Controllable by defaultValue prop.

Installation

bash
npx sigma-ui add accordion

Examples

Basic

Displays single item, collapsed by default (no defaultValue or v-model props specified).

Multiple

Displays multiple expanded items at once. Controllable programmatically by v-model.

Notes

  • Use defaultValue prop to simply define the open item by default or use v-model prop to fully control the opened item(s) programmatically.

  • To display multiple expanded items at once, use v-model: string[] and type="multiple".

  • To display single expanded item at once, use v-model: string and type="single".

Edit this page on GitHub