Progress

A progress bar.

value is the fill from 0 to 100; values outside are clamped. size sets the bar thickness, and background: false hides the track. Change the fill color with barClassName.

Live example

Example controls

Usage

import { Progress } from '@prosazhin/pbcomponents';

<Progress
  value={40}
  size='s'
/>;

Component API

PropType / variantsPurposeDefault
valuenumberFill from 0 to 100.0
size'xs' | 's' | 'm' | 'l'xs · s · m · lComponent size.m
backgroundbooleanShows the track behind the bar.true
barClassNamestringClass of the filled bar.—
classNamestringClass of the root element.—

Native HTML attributes are accepted where the component renders the corresponding element. className props only affect styling.