Accordion
Accordion is a wrapper for multiple Collapse components. It only allows one item to be open at a time and can track a value using v-model. Accordion has no styles of its own, so it can match any UI.
Accordion is a wrapper for multiple Collapse components. It only allows one item to be open at a time and can track a value using v-model. Accordion has no styles of its own, so it can match any UI.
The Accordion components include the following:
Collapse and toggles the state when clicked.Collapse is open.The wrapper component for grouping multiple Collapse components. Only one Collapse can be open at a time. Tracks the open value using v-model.
| Accordion Props | Type | Description |
|---|---|---|
modelValue | string | number | The currently open item's value. Use with |
| Accordion Events | Arguments | Description |
|---|---|---|
update:modelValue | Emitted when the open value changes (for v-model sync). |
| Accordion Slots | Description |
|---|---|
default | The default slot. Place Collapse components as children here. |
| Accordion Provides | Type | Description |
|---|---|---|
accordion-value | The current value being tracked by the Accordion (provided via Vue provide/inject). |
Collapse can be used as a child of Accordion. See Collapse for details.
CollapseTitle is used within a Collapse to define the clickable title area. See CollapseTitle for details.
CollapseContent is used within a Collapse to define the collapsible content area. See CollapseContent for details.