Skip to content
Look

Shared with the landing page. Theme is the select beside this menu.

Progress

Open .md
Live preview

Loading example…

Progress is part of the Atoms set, imported from @jcsoftdev/ui/atoms.

import { Progress } from "@jcsoftdev/ui/atoms";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/atoms/progress.

<Progress value={60} max={100} aria-label="Meta de ingresos del día" />
Prop Type Default Description
value * number
classNames Partial<Record<ProgressPart, string>> Per-part classes merged with cn; consumer classes win. className still targets the root and is merged last.
max number DEFAULT_MAX
tone ProgressTone "accent" Colour of the indicator. Defaults to "accent". The value is always exposed through the progressbar semantics, never by colour alone.
getValueLabel ((value: number, max: number) => string) defaultGetValueLabel Text announced as aria-valuetext; defaults to the rounded percentage.

* marks a required prop.

It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).

packages/ui/src/atoms/progress/progress.tsx