Overview
Progress exposes the installed Base UI parts: Root, Track, Indicator, Label, and Value. Import them from twenty-ui/primitives/feedback. Use ProgressBar or ProgressRing for a convenient appearance with the same semantic contract.
Usage
Root owns the controlled value and accessible progressbar semantics. Label supplies its accessible name. Value displays the formatted value. Track and Indicator describe the visual fill; the indicator width comes from the root’s normalized range. The parts do not impose an appearance.
50% while aria-valuenow is 70, aria-valuemin is 20, and aria-valuemax is 120. The application owns requests, timing, and progress updates. There is no defaultValue or automatic advancement.
Values, ranges, and indeterminate progress
min defaults to 0, and max defaults to 100. Supply finite bounds with min < max. Finite values outside the range are clamped for the semantic value, formatted value, and visual fill. Completion occurs at the maximum. Changing the range recalculates the percentage without changing the raw value supplied by the application.
Pass value={null} when the amount of progress is unknown. The root then has indeterminate status, omits aria-valuenow, and uses indeterminate progress as its default accessible value text. Non-finite values also remain indeterminate; they are not converted to zero. The raw Indicator has no computed percentage width in that state, so the composition chooses its indeterminate appearance.
Labels and formatting
ComposeProgress.Label inside Root, or set native aria-label or aria-labelledby. Use aria-valuetext for a human-readable alternative when a percentage is insufficient.
The default formatter displays the normalized percentage. locale and format retain the installed Intl.NumberFormat contract; an explicit format formats the clamped numeric value. getAriaValueText(formattedValue, value) receives that formatted text and the raw application value, including null. It changes the accessible value text without changing the fill.
Progress.Value receives both the formatted value and raw value through its optional child callback. For indeterminate progress, the callback receives indeterminate as formatted text; without a callback, the value part displays no content. Display content does not automatically become the accessible name or accessible value text.
Native props, refs, and composition
Every part preserves native props, refs, and the installed
render composition contract. Forward the supplied props and ref when replacing an element. className, style, and render callbacks receive the public state with status: progressing, complete, or indeterminate. State attributes make the same status available to styles.
The entry point exports ProgressStatus and the Props and State types for every part, including ProgressRootProps, ProgressRootState, ProgressIndicatorProps, and ProgressIndicatorState. Each part forwards native event handlers. Applications own feature choreography and completion callbacks.
Props
Progress.Root
Class applied to this part, or a callback receiving its progress status.
Intl.NumberFormat options for the clamped numeric value. The default displays the normalized percentage.
Receives the formatted value and raw value, including null, and returns an accessible value description.
ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ProgressRootState>
Composes this part with an element or render callback. Forward the supplied props and ref to the corresponding DOM element.
Inline styles applied to this part, or a callback receiving its progress status.
Progress.Track
Class applied to this part, or a callback receiving its progress status.
ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ProgressTrackState>
Composes this part with an element or render callback. Forward the supplied props and ref to the corresponding DOM element.
Inline styles applied to this part, or a callback receiving its progress status.
Progress.Indicator
Class applied to this part, or a callback receiving its progress status.
ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ProgressIndicatorState>
Composes this part with an element or render callback. Forward the supplied props and ref to the corresponding DOM element.
Inline styles applied to this part, or a callback receiving its progress status.
Progress.Value
Optional callback receiving the formatted value and raw value. Indeterminate progress passes indeterminate as formatted text. Without a callback, indeterminate progress displays no content.
Class applied to this part, or a callback receiving its progress status.
ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ProgressValueState>
Composes this part with an element or render callback. Forward the supplied props and ref to the corresponding DOM element.
Inline styles applied to this part, or a callback receiving its progress status.
Progress.Label
Class applied to this part, or a callback receiving its progress status.