Skip to content

LineGauge

widgetsdata

Show percentage label at right

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

PropTypeRequiredDescription
filledCharstringoptionalFilled portion character
emptyCharstringoptionalEmpty portion character
showLabelbooleanoptionalShow percentage label at right
fillColorColoroptional
emptyColorColoroptional
#data#line-gauge