Progress Bar

A segmented progress bar component for displaying completion status with label positioning options.

Installation

npx chilli@latest add progress-bar

Default

Sizes

Small (4px)

Medium (8px)

With Label

20%
60%
100%
40%
80%

Interactive

40%

API Reference

ProgressBar

PropTypeDefaultDescription
valuenumber0Progress value from 0 to 100.
segmentsnumber5Number of segments in the bar.
size"sm" | "md" | "lg""md"Height of the progress bar.
labelPosition"none" | "right" | "bottom""none"Position of the percentage label.
formatLabel(value: number) => stringCustom label formatter.