Skip to content

Kbd

Display a keyboard key or combination of keys.

Playground

Enter

Usage

Use Kbd.Root for one key and Kbd.Group for a shortcut with several keys. The component follows shadcn-svelte Kbd.

<script lang="ts">
import * as Kbd from '@allmaps/ui/kbd'
</script>
<Kbd.Group>
<Kbd.Root>Shift</Kbd.Root>
<Kbd.Root>Enter</Kbd.Root>
</Kbd.Group>

The existing import { Kbd } from '@allmaps/ui' also renders a single key.