Skip to content

zk-accordion ​

A group of expandable items. It is only a wrapper: the items are zk-accordion-item.

Props ​

PropTypeDefaultDescription
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

Slots ​

SlotDescription
defaultThe zk-accordion-item elements

Items that share a name open one at a time, by the native behaviour of <details name>.

Examples ​

Exclusive ​

blade
<x-zk-accordion>
    <x-zk-accordion-item title="One" name="faq" :open="true">First</x-zk-accordion-item>
    <x-zk-accordion-item title="Two" name="faq">Second</x-zk-accordion-item>
</x-zk-accordion>

Documentation of 3.2.0 , built from c93e21f on 3.2.0 by pipeline #2919741884 on 2026-10-06.