A shadcn-style keyboard key component for shortcuts and key combinations.

Single keys:

K⌘⌃⇧

Key combinations:

⌘K⌘ShiftPCtrlAltDelete

Installation

npx shadcn@latest add @ark-cn/kbd

Usage

import { Kbd, KbdGroup } from "@/components/ui/kbd"

Examples

Default

Single keys:

K⌘⌃⇧

Key combinations:

⌘K⌘ShiftPCtrlAltDelete

Inline Shortcut

Press ⌘K to open command search.