Extended from PrimeVue accordion
By default, accordions will only allow one item to be expanded at a time. Upon expanding a second item, the open item will collapse.
The minimal variant is designed to be used within a block of long-form content to better match headings and text alignment.
If no initial expanded id is provided, each item will start collapsed.
If you want to control the accordion programmatically or trigger a UI change elsewhere when a specific item is expanded, you can use the v-model
directive to bind the active id to a data value. The initial state of the data value must be a valid accordion id.
This variant allows more than one item to be expanded at a time. Do not use in conjunction with v-model
.
Example using v-for to construct the children es-accordion
elements.
allowMultipleExpand
Boolean
false
initialExpandedId
String
variant
String
default
id
String
headingTag
String
h3