UIComponentsReact
A key or a key combination, as the reader presses it.
Rendered by React 19.3.1
Installation
npx shadcn@4.23.0 add https://hamur.dev/r/react/kbd.jsonIt also adds utils. The app needs its setup first: Installation.
Usage
Write one Kbd per key and wrap a combination in KbdGroup.
import { Kbd, KbdGroup } from '@/components/ui/kbd'Examples
API reference
Kbd wraps no headless component of its own: its parts are elements with classes, and their props are the element's.