Kbd
FREEKeyboard keys and shortcuts; mod becomes ⌘ or Ctrl depending on the platform.
Installation
Terminal
npx @bloxa/cli add kbd
# or: npx shadcn@latest add @bloxa/kbdExamples
Shortcuts
Open search ⌘K
New line ⇧↵
Close Esc · Navigate ↑ ↓
API reference
Every component also accepts the props of the element it renders.
Kbd / KbdGroup
| Prop | Type | Default | Description |
|---|---|---|---|
| children / keys | string / string[] | — | Key(s); mod, shift, enter, esc… become symbols. |
| size | "sm" | "md" | "md" | Size. |