Kbd
Displays a keyboard key or shortcut, alone or grouped into combinations, for hotkey hints in menus, tooltips, and docs.
Press ⌘K to open the command menu.
Installation
Bash
Usage
Examples
In a button
In an input
In a tooltip
Keys invert automatically on the dark tooltip surface.
API reference
Kbd and KbdGroup
Extend the native <kbd> element — no props beyond it. Kbd renders a
single key (it inverts automatically inside tooltips); KbdGroup lays
out a key combination with tight spacing.