Skip to content

zk-spacer ​

An empty element that pushes the others apart.

Props ​

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

Undeclared attributes forward to the root element.

Hidden from assistive technology. Give .spacer flex: 1 in your style.

Examples ​

In a bar ​

blade
<x-zk-flex>Logo <x-zk-spacer /> Menu</x-zk-flex>

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