kbd
Kbd
Shows a keyboard key or shortcut, such as the key that focuses the search.
States: Default
Parts
| Part | File | Does |
|---|---|---|
| Kbd | Kbd.vue | Shows a keyboard key or shortcut. |
| KbdGroup | KbdGroup.vue | Groups several keys into one shortcut. |
Styling
Install
Writes 3 files into components/ui/kbd/. For agents, npx @frontic/ui docs kbd prints this reference as markdown; the MCP server serves the same.
- npm packages
- reka-ui
API reference
Kbd Kbd.vue
Shows a keyboard key or shortcut. Renders a <kbd>.
| Prop | Type | Default | |
|---|---|---|---|
| asChild | boolean | false | |
| as | AsTag | Component | 'kbd' | |
| class | ClassValue | — | |
| Recipe kbd | Sets | |
|---|---|---|
| base: kbd | 13 properties | |
KbdGroup KbdGroup.vue
Example