Jump to a page or a component.
Split bar — filled run, gap, remainder; each end collapses to a pip.
No install — ask an AI agent to copy this component from registry.json.
import { Progress, progressVariants } from "@/components/ui/progress";calc(100% - 2 * (gap + pip)) wide and centred, with each segment overhanging its own end. Do not add overflow-hidden to the wrapper; it would clip them.value={null} is the indeterminate state: the split makes no sense without a value, so the track becomes a solid channel with a segment sweeping across it. The keyframe ships in this library's styles — it is not tw-animate-css.formatValue feeds both the visible readout and the bar's aria-valuetext, so the two cannot disagree.The props worth knowing. Everything else passes straight through to the underlying element, including className, which is merged last so it always wins.
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | null | null | Current value. null is the indeterminate sweep. |
| max | number | 100 | Value that counts as complete. |
| label | ReactNode | — | Header copy on the left. Pass a translated string; no default. |
| showValue | boolean | label !== undefined | Render the formatted readout on the right of the header row. |
| formatValue | (value: number, max: number) => string | rounded percentage | Readout string, and the aria-valuetext with it. |
| size | "sm" | "default" | "lg" | "default" | Track height; the gap and pip derive from it. |