Progress
Determinate bars and indeterminate spinners.
- Native host
- In the first release
import { Progress, progressPrimitive } from "nitro-ui-sdk/progress";- HeroUI Native
- SpinnerProgressBar (Pro)
- Expo UI
- ProgressViewProgress indicatorsLoadingIndicator

Light 
Dark
On this page
Progress shows how far a task has gone, or that a task is still running. Use the bar when you know the value. Use the spinner when you do not. For a circular value, use Gauge.
The bar and the spinner are native controls. The label and the value are composed on top and hidden from assistive tech so the native control is the only thing that speaks.
Anatomy
<Progress.Root label="Syncing library" value={64}>
<Progress.Label />
<Progress.Value />
<Progress.Track>
<Progress.Indicator />
</Progress.Track>
</Progress.Root>
| Part | Description |
|---|---|
Root |
Host for the state, the agent entry, and the default layout. |
Label |
Visible name. Hidden from VoiceOver because the native control already has it. |
Value |
Visible percent, such as 64%. Also hidden from VoiceOver. |
Track |
Slot that hosts the native bar. |
Indicator |
The native bar fill or the native spinner. |
Omitting the children renders that anatomy for you. A spinner renders Indicator and Label only.
Usage
import { Progress } from "nitro-ui-sdk/progress";
export function Sync() {
return <Progress.Root label="Syncing library" value={64} />;
}
Variants and sizes
variant is bar (default) or spinner. size is sm, md, or lg. md is the default.
intent colors the indicator: accent (default), success, warning, or danger.
<>
<Progress.Root label="Backup" value={100} intent="success" size="sm" />
<Progress.Root label="Checking status" variant="spinner" size="lg" />
</>
States
A bar with no finite value is indeterminate and renders as a spinner. A bar at the maximum is complete and not busy. A spinner is always busy. There is no disabled state: progress is not a control.
Controlled
The parent owns value. Progress does not keep its own number.
const [value, setValue] = useState(40);
<Progress.Root label="Syncing library" value={value} />
min defaults to 0 and max defaults to 100. Values outside that range are clamped.
Liquid Glass
Progress does not draw Liquid Glass. The track uses the opaque default color and the indicator uses the intent color.
Props
Root
| Prop | Type | Default | Description |
|---|---|---|---|
label |
string |
— | Accessible name. Required. |
variant |
"bar" | "spinner" |
"bar" |
Determinate bar or spinner. |
size |
"sm" | "md" | "lg" |
"md" |
Bar thickness or spinner diameter. |
intent |
"accent" | "success" | "warning" | "danger" |
"accent" |
Indicator color. |
value |
number |
— | Current value. Omit it for an indeterminate spinner. |
min |
number |
0 |
Lower bound. |
max |
number |
100 |
Upper bound. |
valueText |
string |
percent | Spoken value. The visible text stays a percent. |
formatValue |
(state: ProgressState) => string |
— | Custom spoken value. |
busyLabel |
string |
— | Spoken busy description. |
animating |
boolean |
true when motion is allowed |
Passed to the native control. Reduced motion forces it off, even when this is true. |
announceUpdates |
boolean |
— | Speaks throttled updates as the value moves. |
onAnnounce |
(message: string) => void |
— | Receives the announcement instead of the platform. |
styles |
ProgressStyles |
— | Per-part style resolvers. |
api |
Controller<ProgressActions> |
— | Attached controller. |
agentId |
string |
— | Stable agent id. |
layout |
layout | — | Extra layout merged onto the root. |
Label, Value, Track, Indicator
Each part accepts part and layout overrides from the part props. Label and Value accept children to replace the string.
Controller API
import { progressPrimitive } from "nitro-ui-sdk/progress";
const api = progressPrimitive.createApi();
// <Progress.Root api={api} label="Syncing library" value={64} />
api.current?.getState();
| Action | Signature | Result |
|---|---|---|
getState |
() => ProgressState |
Value, bounds, percent, whether it is indeterminate, complete, or busy, and the intent. |
Progress has no write actions. The parent changes value.
Styles
The resolver receives tokens, variant, size, and state (ProgressState).
<Progress.Root
label="Syncing library"
value={40}
styles={{
track: ({ tokens }) => ({ style: { background: tokens.colors.default } }),
indicator: ({ tokens, state }) => ({ style: { background: tokens.colors[state.intent] } }),
label: ({ tokens }) => ({ text: { color: tokens.colors.foreground } }),
}}
/>
Accessibility
The native control is one progress bar. Its name is label. A determinate bar speaks the percent (or valueText). A spinner speaks busyLabel while it is busy. The visible label and percent are accessibilityHidden, so they are not read twice. Spoken updates are throttled and always allow the completion announcement once.
Agent API
Read-only. Role progressbar. The value is the percent, or null when the control is indeterminate. State is { busy }. There are no actions.
Platform notes
| iOS | Android | |
|---|---|---|
| Drawing | UIProgressView and UIActivityIndicatorView inside KitProgressView. |
ProgressBar inside the same view. |
| Verification | Built and exercised by the iOS harness on the lanes simulator. | Kotlin is written to compile and was not built on this machine. There is no Android NDK here. |