Skip to content

Kbd

Displays a keyboard key or a combination of keys.

Examples

Default

K
vue
<div class="flex gap-4">
  <Kbd>⌘</Kbd>
  <Kbd>K</Kbd>
</div>

Group

K
vue
<KbdGroup>
  <Kbd>⌘</Kbd>
  <Kbd>K</Kbd>
</KbdGroup>

Props

Kbd

PropTypeDefaultDescription
classstring-Custom classes to apply to the kbd element.

Slots

Kbd

SlotDescription
defaultThe content of the kbd element.