Skip to content
Nana UI

Progress Bar

View .md Download

A linear progress indicator — determinate or indeterminate, with optional label, stripes, sizes and semantic colours.

Terminal window
npm install @nana-tec/ui-components
import "@nana-tec/ui-components/progress-bar";
<nana-progress-bar value="60" style="width:100%"></nana-progress-bar>

label + show-value add context, striped + color restyle it, and indeterminate shows an unbounded loop.

Properties

PropertyAttributeTypeDefaultDescription
colorProgressColor'primary'Semantic colour
indeterminatebooleanfalseUnknown duration — animates continuously
labelstring | undefinedOptional label shown above the bar
showValueshow-valuebooleanfalseShow the percentage next to the label
sizeProgressSize'md'Bar height
stripedbooleanfalseAnimated diagonal stripes
valuenumber0Progress value, 0–100

CSS parts

PartDescription
::part(track)The background track
::part(fill)The filled portion

CSS custom properties

PropertyDescription
--nana-progress-colorFill colour (overrides the `color` attribute)
VariableDefaultDescription
--nana-progress-colorFill colour (overrides the color attribute)
PartDescription
trackThe background track
fillThe filled portion
Explore Progress Bar interactively Every state, prop, and edge case — with live controls — in Storybook.
View in Storybook