Kbd
display
Kbd: an inline label representing a keyboard input
Terminal
$termuijs render kbd
Installation
$ bunx termuijs add kbd
Copies the source into src/components/kbd/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Kbd } from '@termuijs/widgets'ts
new Kbd(keys: string, style?: Partial<Style>, opts?: KbdOptions)API Reference
Kbd
| Prop | Type | Required | Description |
|---|---|---|---|
keys | string | required | — |
color | Color | optional | — |