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

PropTypeDefaultDescription
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''
/docs/kbd Truss UI · MIT