Kbd
A key on the keyboard.
Group keys pressed together with KbdGroup. Inside a tooltip, a key adapts to the inverted
surface.
Dependencies
What it's built from and what's built from it in Base, read from the imports in its source.
| Uses | Textprimitive |
|---|---|
| Used by | Menu |
| Packages | None. |
Installation
Set the project up for Base once first, as Getting started shows. Then add it with the CLI, or by hand.
With the CLI
Manually
Add the components it uses first, listed under Dependencies.
Then copy the source:
API reference
Generated from Base's types. Props marked ours are added here; the rest come from the ui-sdk part it wraps. Every part also accepts its element's native attributes.
Kbd
A key on the keyboard, like ⌘ or K. Readable inside tooltips and on inverted surfaces too.
Takes the props of a native div.
KbdGroup
Keys pressed together, like ⌘ K.
Takes the props of a native div.