Usage
To communicate progress toward a goal, import <Progress>
and pass in a value
and a max
.
Colors
You can change the color of the progress bar by setting its variant
to primary
(default) or success
.
Sizing
You can change the height of the progress bar by setting height
to md
(default) or lg
.
Animation
By default, the progress bar will animate between values.
To prevent animation, set animate={false}
.
API Reference
Progress
Inherits properties from HTMLElement
.
Prop | Type | Default |
animate | boolean | true |
asChild | boolean | false |
getValueLabel | (value: number, max: number) => string | |
max | number | |
size | "md" "lg" | md |
value | number null | |
variant | "primary" "success" | primary |