Components / Overlays
Kbd
Renders a key combination (mod+shift+p) as one kbd per key, with Cmd on Apple platforms and Ctrl elsewhere.
@ruckc/truss-ui Overlays
Import
import { Kbd } from '@ruckc/truss-ui'; Playground
No interactive demo
This component is documented through its API reference below.
API
| Prop | Type | Default | Description |
|---|---|---|---|
keys required | string | — | A key combination such as `mod+shift+p`, or a sequence such as `g h`. `mod` shows as ⌘ on Apple platforms and Ctrl elsewhere. |
class | string | '' |