Skip to content

Kbd ​

Displays a keyboard key or a combination of keys.

Examples ​

Default ​

⌘K
vue
<script setup>
import { Kbd } from '@empathyds/vue'
</script>

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

Group ​

⌘K
vue
<script setup>
import { Kbd, KbdGroup } from '@empathyds/vue'
</script>

<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.