ProgressBar
feedback
ProgressBar: horizontal progress indicator
Terminal
$termuijs render progress-bar
Installation
$ bunx termuijs add progress-bar
Copies the source into src/components/progress-bar/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { ProgressBar } from '@termuijs/widgets'ts
new ProgressBar(style: Partial<Style> = {}, options: ProgressBarOptions = {})API Reference
ProgressBar
| Prop | Type | Required | Description |
|---|---|---|---|
value | number | optional | Current value (0–1) |
fillChar | string | optional | Character for the filled portion |
emptyChar | string | optional | Character for the empty portion |
fillColor | Color | optional | Color of the filled portion |
showLabel | boolean | optional | Show percentage label |
labelFormat | 'percent' | 'fraction' | optional | Label format: 'percent' | 'fraction' | 'custom' |
total | number | optional | Total for fraction display |