Components · Data
Progress
A progress bar. value out of max (default 100).
ExamplesLink to this section
Migration64%
Launch tasks7 of 12
Show JSONHide JSON
{
"version": 1,
"root": "stack",
"elements": {
"stack": {
"type": "Stack",
"props": { "gap": "md" },
"children": ["migration", "tasks"]
},
"migration": {
"type": "Progress",
"props": { "label": "Migration", "value": 64 }
},
"tasks": {
"type": "Progress",
"props": {
"label": "Launch tasks",
"value": 7,
"max": 12,
"format": "fraction"
}
}
}
}PropsLink to this section
Generated from the zod schema the server validates with. Unknown props are ignored with a warning. Any prop can also be a dynamic value such as { "$state": "/path" }; it is checked again once it resolves.
| Prop | Type | Limits and defaults |
|---|---|---|
| valuerequired | number | — |
| max | number | — |
| label | string | max 120 chars |
| format | "percent" | "fraction" | — |
RulesLink to this section
maxdefaults to 100 and must be greater than 0.
Children and eventsLink to this section
Progress is a leaf: it does not show children. Validation warns when a leaf has some; wrap them in a Stack or Card instead.
It emits no events.