Skip to content
Nana UI

Progress Ring

View .md Download

A circular progress indicator — determinate or indeterminate, with an optional centre label, sizes and semantic colours.

Terminal window
npm install @nana-tec/ui-components
import "@nana-tec/ui-components/progress-ring";
<nana-progress-ring value="60"></nana-progress-ring>

Properties

PropertyAttributeTypeDefaultDescription
colorProgressColor'primary'Semantic colour
indeterminatebooleanfalseUnknown duration — animates continuously
labelstring | undefinedAccessible label
showValueshow-valuebooleanfalseShow the percentage in the centre
sizeProgressSize'md'Ring size
valuenumber0Progress value, 0–100

Slots

SlotDescription
(default)Centre label content (overrides `show-value`)

CSS parts

PartDescription
::part(ring)The SVG wrapper
::part(indicator)The progress arc

CSS custom properties

PropertyDescription
--nana-progress-colorArc colour (overrides the `color` attribute)
SlotDescription
(default)Centre label content (overrides show-value)
VariableDefaultDescription
--nana-progress-colorArc colour (overrides the color attribute)
PartDescription
ringThe SVG wrapper
indicatorThe progress arc
Explore Progress Ring interactively Every state, prop, and edge case — with live controls — in Storybook.
View in Storybook