Skip to content

zk-kbd ​

A key, or a combination of keys.

Props ​

PropTypeDefaultDescription
keysarray[]Keys of a combination, shown each in a <kbd>
separatorstring'+'Text between the keys
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

Slots ​

SlotDescription
defaultA single key

Class hooks: kbd, kbd-combo, kbd-key, kbd-separator (hidden from assistive technology).

Examples ​

Key ​

blade
<x-zk-kbd>Esc</x-zk-kbd>

Combination ​

blade
<x-zk-kbd :keys="['Ctrl', 'K']" />

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