Kbd
A keyboard key.
Press ⌘ K to search, or Esc to close.
When to use
- Use when
- Showing a keyboard shortcut or key in text or menus.
- Avoid when
- The text is code; use a code element.
Installation
The source lands in src/components/ui/kbd.tsx, along with any Shelf items it builds on, and .shelf/lock.json records what was installed. It's yours to edit.
Usage
Built on
- Packages
@stylexjs/stylex- Shelf items
foundations,utils- Figma
- In progress. See Designers and Figma.