Web · Components
Progress
Progress bar.
2 exports
Live example
Preview
Loading66%
Code
Events
- Events appear here when you interact with the preview.
Import
Progress bar. It is a server component; since the bar moves with transform, value changes don't relayout the page.
Examples
ProgressProps
interfaceProps of the Progress component.
Extends: Omit<ComponentProps<"div">, "children">
| Name | Type | Default | Description |
|---|---|---|---|
value? | number | null | Completed amount (0 – max). If omitted or null, the duration is shown as indeterminate (sliding bar). | |
max? | number | 100 | Maximum value. |
label? | ReactNode | Label shown above the bar; screen readers read the bar by this name. If you don't want a visible label, pass aria-label instead. | |
showValue? | boolean | ReactNode | Shows the value right of the label: the percentage when true, or the given text or element (e.g. "3 / 10 files"). | |
valueText? | string | Value text read to screen readers (e.g. "3 / 10 files"). If omitted, the percentage is read. | |
tone? | Tone | "primary" | Color. |
size? | keyof typeof sizeClasses | "md" | Thickness. |