Skip to content
Nana UI

Feedback & Status

Progress Bar

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

View .md Download
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
colorcolorProgressColor'primary'Semantic colour
indeterminateindeterminatebooleanfalseUnknown duration — animates continuously
labellabelstring | undefined—Optional label shown above the bar
labelHiddenlabel-hiddenbooleanfalseKeep the label for assistive technology but not on screen — for a bar that already sits under a heading of its own, where painting the label again would just repeat it.
showValueshow-valuebooleanfalseShow the percentage next to the label
sizesizeProgressSize'md'Bar height
stripedstripedbooleanfalseAnimated diagonal stripes
valuevaluenumber0Progress 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)
VariableDescription
--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