Gauge
data
Gauge: a self-contained metric display with label, bar, and value
Terminal
$termuijs render gauge
Installation
$ bunx termuijs add gauge
Copies the source into src/components/gauge/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Gauge } from '@termuijs/widgets'ts
new Gauge(label: string, style: Partial<Style> = {}, opts: GaugeOptions = {})API Reference
Gauge
| Prop | Type | Required | Description |
|---|---|---|---|
label | string | required | — |
color | Color | optional | Color of the filled portion |
showLabel | boolean | optional | Show percentage label |