LineGauge
data
Show percentage label at right
Terminal
$termuijs render line-gauge
Installation
$ bunx termuijs add line-gauge
Copies the source into src/components/line-gauge/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { LineGauge } from '@termuijs/widgets'ts
new LineGauge(style: Partial<Style> = {}, opts: LineGaugeOptions = {})API Reference
LineGauge
| Prop | Type | Required | Description |
|---|---|---|---|
filledChar | string | optional | Filled portion character |
emptyChar | string | optional | Empty portion character |
showLabel | boolean | optional | Show percentage label at right |
fillColor | Color | optional | — |
emptyColor | Color | optional | — |