ShortcutBar
display
ShortcutBar: a horizontal footer bar that displays quick key bindings
Terminal
$termuijs render shortcut-bar
Installation
$ bunx termuijs add shortcut-bar
Copies the source into src/components/shortcut-bar/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { ShortcutBar } from '@termuijs/widgets'ts
new ShortcutBar(items: ShortcutItem[] = [], style: Partial<Style> = {}, opts: ShortcutBarOptions = {},)API Reference
ShortcutBar
| Prop | Type | Required | Description |
|---|---|---|---|
items | ShortcutItem[] | optional | — |
keyStyle | Partial<Style> | optional | Custom styles for the key (e.g., fg/bg colors) |
labelStyle | Partial<Style> | optional | Custom styles for the label text |
separator | string | optional | Horizontal separator string |