Kbd
A keyboard shortcut drawn as a key cap.
Group: Text · Kind: macro · in the lite catalog
Preview
Section titled “Preview”example
⌘K
Platforms
Section titled “Platforms”The same specimen painted by React, SwiftUI, Compose and gpui.




| Prop | Type | Required | Bindable | Description |
|---|---|---|---|---|
keys |
string |
yes | – | The shortcut text (⌘K, Ctrl+Shift+P). |
Events
Section titled “Events”None.
None.
Children
Section titled “Children”none
A2UI basic mapping
Section titled “A2UI basic mapping”No basic catalog component maps here.
Built from
Section titled “Built from”Accessibility
Section titled “Accessibility”Role: text
text (the shortcut spelled out)
Not focusable; no keys.
Theming
Section titled “Theming”Recipe parts: Kbd/root Kbd/label
Keyed by: :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover