Component
Kbd
Marks a keyboard key or shortcut.
Install
Run the CLI to copy the source into your project.
pnpm dlx @stalk-ui/cli add @stalk-ui/kbdExamples
Live previews render through the docs app's PandaCSS codegen.
<Kbd>Esc</Kbd>
<Text> Press <Kbd>⌘</Kbd> <Kbd>K</Kbd> to open search. </Text>
<Kbd size="lg">Enter</Kbd>
Props
Public component props extracted from the source TypeScript types.
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
| `size` | `KbdSize` | No | - | - |
Variants
Variant axes exposed by the underlying PandaCSS recipe or slot recipe.
| Variant | Values |
|---|---|
| `size` | `sm`, `md`, `lg` |
Registry
Files this component contributes to your registry install.
- Manifest: `/r/kbd.json`
- Recipe: `kbd`
- Files: `src/components/ui/kbd.tsx`