Atoms / Kbd

Kbd

<Kbd />Stable

Keyboard shortcut chip. Use KbdGroup to render multi-key combinations with consistent spacing.

import { Kbd, KbdGroup } from "@/components/upnext";

Explorer

Edit any prop in the inspector — preview and code update together. Hover any color for hex + token.

Content

Context

⌘K
<Kbd>⌘</Kbd>
<Kbd>K</Kbd>

Inspector

Edit one prop at a time and see the token chain resolve. The preview re-renders, the code panel updates, and the resolves-to column shows every Tailwind class → CSS variable → final value.

Preview

⌘K

Code

import { Kbd } from "@/components/upnext";
<Kbd>⌘K</Kbd>

Keys

⌘
<Kbd>⌘</Kbd>

Composition

⌘K
<KbdGroup>
<Kbd>⌘</Kbd>
<Kbd>K</Kbd>
</KbdGroup>

Source

The wrapper is a thin re-export; the actual styling lives in the shadcn primitive.