Skip to content

zk-accordion-item ​

One expandable item, a native <details>.

Props ​

PropTypeDefaultDescription
titlestring|nullnullText of the trigger
openboolfalseOpen at first
namestring|nullnullGroup name: only one item of the group is open at a time
levelint3Level of the heading around the title (h2 to h6)
disabledboolfalseAdds data-disabled and aria-disabled
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

Slots ​

SlotDescription
defaultPanel content
headerReplaces the title

Class hooks: accordion-item, accordion-trigger, accordion-header, accordion-panel. Style the state with [open]. disabled only marks the item: add pointer-events: none to the trigger of [data-disabled].

Examples ​

Item ​

blade
<x-zk-accordion-item title="Shipping">Delivered in 3 days.</x-zk-accordion-item>

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