Skip to content

zk-tree-item ​

A branch (with children) or a leaf of a tree.

Also available as x-zk-tree-node, the name that @zairakai/vue-components gives it.

Props ​

PropTypeDefaultDescription
labelstring|nullnullText
openboolfalseExpanded at first (a branch only)
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

Slots ​

SlotDescription
defaultThe child zk-tree-item elements; with none, the item is a leaf

Class hooks: tree-item, tree-label, tree-group.

Examples ​

Branch ​

blade
<x-zk-tree-item label="src">
    <x-zk-tree-item label="index.php" />
</x-zk-tree-item>

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