Put the label, the value, and the track inside Progress. Pass value={null} when the size of the task is not known.
upload-progress.tsx
Progress
<div>| Prop | Type | Default | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||||||||||
| glow | boolean | — | A soft halo in the fill color (glow, @gelatin-ui/glow). Default: false. | ||||||||||||||||||||||||||||||
| tone | "destructive""info""neutral""success""warning" | "neutral" | The fill color: default (primary), or a status for a task whose state has a meaning: success done, warning slow or nearly full, info a neutral step, destructive failed. Color is never the only signal: say the state in the label or value. | ||||||||||||||||||||||||||||||
From Base UIProgress.RootBase UI docs | |||||||||||||||||||||||||||||||||
| aria-valuetext | string | — | A string value that provides a user-friendly name for aria-valuenow, the current value of the progress bar. | ||||||||||||||||||||||||||||||
| format | NumberFormatOptions | — | Options to format the value. | ||||||||||||||||||||||||||||||
| get | — | Accepts a function which returns a string value that provides a human-readable text alternative for the current value of the progress bar. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | ||||||||||||||||||||||||||||||
ProgressLabel
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ProgressValue
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
From Base UIProgress.ValueBase UI docs | |||
| children | — | ||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
ProgressTrack
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| thickness | "thick""thin" | "thin" | |
| rounded | "default""full" | — | |
| size | "default""lg""sm""xs" | — | |
| class | string | — | |
| variant | "bar""dots""segments""steps""ticks" | "bar" | bar (default): one fill. The others draw a row of segments. |
| segments | number | — | The segment count of a segmented look. Default: ticks 30, segments 10, steps 5, dots 20. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ProgressIndicator
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |







