Skip to content

Early previewhamur is not on npm yet. The components are being built in the open, follow along on GitHub.

UIComponentsReact

Kbd

A key or a key combination, as the reader presses it.

Rendered by React 19.3.1

kbd.tsx

Installation

npx shadcn@4.23.0 add https://hamur.dev/r/react/kbd.json

It 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.