››kbd
Kbd
Shows a keyboard key or shortcut, such as the key that focuses the search.
Parts
| Part | File | Does |
|---|---|---|
| Kbd | Kbd.vue | Shows a keyboard key or shortcut. |
| KbdGroup | KbdGroup.vue | Groups several keys into one shortcut. |
Anatomy
<KbdGroup>
<Kbd />
</KbdGroup>Styling
All of Kbd’s styles live in kbd.json. New to styling in Frontic UI? How styling works →
Install
- npm packages
- reka-ui
API reference
Shows a keyboard key or shortcut. Renders a <kbd>.
Props 3
| Prop | Type | Default | |
|---|---|---|---|
| asChild | boolean | false | |
| |||
| as | AsTag | Component | 'kbd' | |
| |||
| class | ClassValue | — | |
| |||
Recipe kbd 1 group
backgroundColor colors.muted#f4f4f5
textColor colors.muted-foreground#66666f
rounded rounded.none0px
typography typography.caption500 0.75rem/1.33 'Inter Variable', Inter, sans-serif
height spacing.5.51.375rem
minWidth spacing.5.51.375rem
paddingX spacing.1.50.375rem
gap spacing.10.25rem
display inline-flex
width fit
alignItems center
justifyContent center
icon › size spacing.30.75rem
Kbd