On this page

Kbd

Install and the parts Kbd is built from.

Install

Run this in the app, after shadcn-vue init and the Beehexa theme (Button › Code):

npx shadcn-vue@latest add https://beehexa.design/r/kbd.json

Use

<script setup lang="ts">
import { Kbd, KbdGroup } from '@/components/ui/kbd'
</script>

<template>
  <KbdGroup>
    <Kbd>Ctrl</Kbd><span aria-hidden="true">+</span><Kbd>K</Kbd>
  </KbdGroup>
</template>

Props

Part Prop Values Notes
Kbd, KbdGroup class string Merged with the Beehexa classes

Built on

The native <kbd> element, as the shadcn-vue Kbd. Beehexa adds the styles and an edge, so the key reads as a key on light and dark surfaces.