Calm motion: animations on this site only fade, with no movement
Kbd
Key combo
A shortcut hint: beside a menu item, in a tooltip, in the command palette (which renders these itself), or in a "press ← / → to move" line. keys takes the combo as an array and joins it with +. A single key can go in the slot. The markup is the own markup of the HTML spec (a <kbd> of <kbd>s), so assistive tech reads it as keys. The uppercase is CSS only: "Ctrl" stays "Ctrl" when read aloud.
Show the symbol the user's platform shows: ⌘ on a Mac, Ctrl elsewhere. The component does not detect the platform. Pass what fits (navigator.platform or your own setting).
Basic
⌘KCtrlShiftPEscpress ← / → in the gallery
Usage
ts
import { BlessKbd } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
keys | string[] | — | keys joined with + ; slot wins if present |
Slots
| Name | Scope | Description |
|---|---|---|
default | — |