A component for showing progress
import { Progress } from "#/ui/components/Progress"
<Progress value={55} />
You can pass any value between 0 and 100
<Progress value={89.125} />
<Progress value={55} />
<Progress value={33.33} />
Any values over 100 or under 0 will automatically be adjusted to within the range
<Progress value={120} />
<Progress value={-4} />
You can pass the max
prop to change the maximum value to greater/less than 100
<Progress value={862} max={1000} />
<Progress value={12} max={20} />
If you don’t know the value, you can instead omit the value
prop which will update the progress bar to be indeterminate
<Progress />
This is not the same as passing 0
to value
, which is treated like a regular numeric value instead of an indeterminate state
<Progress />
<Progress value={0} client:load />
You can pass a className
prop to update the style of the progress bar. Behind the scenes the progress bar is a native <progress>
element, (unless you’re using the indeterminate state)
<Progress className="h-5 [&::-webkit-progress-value]:bg-amber-500" value={55} />