bloxa

Kbd

FREE

Keyboard keys and shortcuts; mod becomes ⌘ or Ctrl depending on the platform.

Installation

Terminal
npx @bloxa/cli add kbd
# or: npx shadcn@latest add @bloxa/kbd

Examples

Shortcuts

Open search ⌘K

New line ⇧↵

Close Esc · Navigate ↑ ↓

API reference

Every component also accepts the props of the element it renders.

Kbd / KbdGroup

PropTypeDefaultDescription
children / keysstring / string[]—Key(s); mod, shift, enter, esc… become symbols.
size"sm" | "md""md"Size.