Skip to content

Meter

GraphMeter

Progress bar drawn with = characters. Empty slots stay as dashes.

Command

pnpm dlx shadcn@latest add <origin>/r/graph-meter.json

Shipped

Dashes stay empty until the fill animates in.

[ SHIPPED ]

67%

characters, not a progress bar

67 percent characters, not a progress bar

Coverage

Fewer ticks. Tighter meter.

[ COVERAGE ]

92%

tests passing

92 percent tests passing

Props

PropTypeDefaultDescription
titlestringCaption drawn on the top edge of the frame.
valuenumber0 to 1.
ticksnumber14Number of character slots.
captionstringMuted line under the meter.
glyphs"shade" | "ascii" | "hash" | "bar" | string[]"shade"Character set. shade is ·░▒▓█. ascii is .- =#@. Pass a preset or your own characters.
cornerstring"+"Character at each corner of the frame.
classNamestringPassed to the outer frame.