Panel
Accordion
Stacked sections that open and close, one at a time or several at once, with headers that follow the WAI-ARIA accordion.
WAI-ARIA tested
Import
main.ts
import { Accordion } from '@vitral/vue';One open at a time
Language, region and the start page.
Multiple
Language, region and the start page.
Permissions, history and what is shared.
Custom icons
A Vue 3 component library with a theme engine of its own.
API
Read from packages/vue/src/components/Accordion/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| multiple | boolean | Let several panels be open at once; `value` is then an array. |
| lazy | boolean | Render a panel's content only while it is open. |
| headingLevel | number | The level of the heading each header button sits in. Defaults to 3; set it to fit the page outline. |
| expandIcon | IconProp | Shown on a closed panel instead of the chevron. |
| collapseIcon | IconProp | Shown on an open panel instead of the chevron. |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Slots
| Name | Slot props | Description |
|---|---|---|
| default | — | — |