Skip to content

zk-divider ​

A separator, a plain <hr> or a labelled one.

Props ​

PropTypeDefaultDescription
orientationstring'horizontal'horizontal or vertical: data-orientation
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

Slots ​

SlotDescription
defaultLabel in the middle of the line, optional

Without a label and when horizontal it is an <hr>; otherwise a div with role="separator".

Examples ​

Plain ​

blade
<x-zk-divider />

Labelled ​

blade
<x-zk-divider>or</x-zk-divider>

Vertical ​

blade
<x-zk-divider orientation="vertical" />

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