Kbd
A keyboard key: a raised keycap, or a flat chip (filled or outline) for hints in menus and buttons.
default⌘ Shift P
filled⌘ Shift P
outline⌘ Shift P
Open the command palette with
API
For AI agents: this API as Markdown, or every component in llms-full.txt.
<ray-kbd> · RayKbd
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
size | size reflects | xs | sm | md | lg | xl | sm | Font size. |
variant | variant reflects | default | filled | outline | default | default: raised keycap; filled: flat muted chip; outline: flat with a border. |
| Slot | Description |
|---|---|
| (default) | The key name. |
| Part | Description |
|---|---|
kbd | The inner <kbd>. |