Kbd macrolite
A keyboard shortcut drawn as a key cap.
Preview
Loading the renderer…
createSurface + updateComponents, A2UI v0.9.
json
[
{
"version": "v0.9",
"createSurface": {
"surfaceId": "preview",
"catalogId": "https://ui.exponential.at/catalogs/core/v1"
}
},
{
"version": "v0.9",
"updateComponents": {
"surfaceId": "preview",
"components": [
{
"id": "root",
"component": "Stack",
"direction": "vertical",
"align": "stretch",
"children": [
"example"
]
},
{
"id": "example",
"component": "Kbd",
"keys": "⌘K"
}
]
}
}
]This surface through a MemoryTransport. Install and transports: React guide.
This surface through a MemoryTransport. Install and transports: SwiftUI guide.
This surface through a MemoryTransport. Install and transports: Compose guide.
This surface through a MemoryTransport. Install and transports: gpui guide.
Platforms




View exponential-ui-kbd, painted by each native renderer.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
keysrequired | string | – | The shortcut text (⌘K, Ctrl+Shift+P). |
Events and slots
No events, no slots. Children: none.
Accessibility
- Role
text- Semantics
- text (the shortcut spelled out)
Not focusable; no keys.
Theming
- Recipe parts
Kbd/rootKbd/label- Keyed by
:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover