Kbd
Displays keyboard input
SSR mode
Examples
Single key
Enter
Key combination
Ctrl
+
S
API
The element family below can be composed together. Click an element to jump to its properties.
| Element | Purpose |
|---|---|
| Kbd | Semantic <kbd> element styled as a muted pill for keyboard shortcuts. Compose multiple Kbds with + separators for chords. |
Kbd
Semantic <kbd> element styled as a muted pill for keyboard shortcuts. Compose multiple Kbds with + separators for chords.
| Property | Type | Required | Description |
|---|---|---|---|
| ClassName | string? | Extra CSS classes appended to the <kbd>. | |
| ChildContent | RenderFragment? | Key label — usually a short string like Enter, Ctrl, or S. | |
| AdditionalAttributes | Dictionary<string, object>? | Captured unmatched attributes, forwarded to the <kbd>. |