Skip to content
Look

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

Meter

Open .md
Live preview

Loading example…

Thinner progress bar.

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

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

<Meter 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
tone ProgressTone 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) 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