Kbd

Displays a keyboard key or shortcut.

Press K to open search
<script lang="ts">
  import { Kbd } from "$lib/components/ui/kbd";
</script>
 
<div
  class="flex items-center gap-2 text-sm tracking-[-0.39px] text-(--text)/72"
>
  Press
  <Kbd>⌘</Kbd>
  <Kbd>K</Kbd>
  to open search
</div>

Installation

npx lily-svelte@latest add kbd

Usage

<script lang="ts">
	import { Kbd } from '$lib/components/ui/kbd';
</script>
 
Press <Kbd>⌘</Kbd> <Kbd>K</Kbd> to search

Built by levish. The source code is available on GitHub.

Quiet by design.