Kbd
Show a keyboard key or shortcut.
import { Kbd } from "@sagui/ui";Loading demo
When to use
- Shortcut hints in menus, tooltips and search.
When not to use
- Use Badge for status or counts.
Installation
Install the package and import the styles once. The installation guide covers the Tailwind setup.
$ npm install @sagui/uiUsage
import { Kbd } from "@sagui/ui";
<Kbd keys={["⌘", "K"]} />Accessibility
- Renders
kbdelements, so screen readers announce them as keys.