Kbd Shortcut Badge

⌘Kto search
About this component

Kbd Shortcut Badge

A keyboard shortcut badge with real keycaps for command palettes and developer tools.

Usage

The import and the props worth knowing about, in one place.

import { Badge22 } from "@/components/beste/component/badge22";

<Badge22 keys={["⌘", "K"]} label="to search" />

<Badge22
  keys={["Ctrl", "Shift", "P"]}
  label="opens the palette"
  tone="outline"   // "muted" (default) | "outline"
/>

Props

Read from the component's own type, so this cannot drift from what it accepts.

PropTypeDefaultDescription
keys*string[]—The keys, one per keycap (e.g. ["⌘", "K"])
labelstring—Muted text after the keys (e.g. "to search")
tone"muted" | "outline"—Keycap style: muted fill (default) or bordered outline
classNamestring—Additional classes merged onto the root

More Badge components

View all Badge
Est. 2019, Berlin
New template addedThe Auralis studio set is live
12k+active users