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.7 , built from 7415dae on 3.2.7 by pipeline #3081600448 on 2026-11-17.