Skip to content

Accordion group - Web Component

The AccordionGroup component can be used imported from:

Playground

Parameters

The Web component uses the <z-accordion-group> tag:

By default, all the parameters are optional or can be set in different, except for the ones marked as required

The parametrization of the component can be done with the following custom HTML params:

NameTypeDescriptionSlotA11y
configstring

Sets the size of the accordion item. Default is m. You can also set it as l.

accordionsobj[]The array with the information of the accordion items

Events

This component has events. Check the documentation about how to use the events.

NamePayloadDescription

Slots

This component has slots. Check the documentation about how to use the slots.

NameTagsDescription

Parameters use

model

...

accordions

We can pass the information of the accordions via the accordions attribute:

Or simply slotting the Accordion components:

Content 1Content 2Content 3

config

...

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

HTML Examples

CodeSandbox example