Progress
Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
Installation
pnpm add @heyramzi/ui bits-uiUsage
import { Progress } from "@heyramzi/ui/shadcn/progress";Keyboard and accessibility
- It's a progressbar that reports its value and max.
- Give it an aria-label that says what's loading, like "Upload". It has no name of its own.
- With reduced motion on, the fill jumps to each new value.
API reference
tone"neutral" | "accent" | "info" | "success" | "warning" | "destructive"- The fill's colour on the severity scale. Left out, the primary colour.
refbindableHTMLElement | null- Default
null classstringmaxnumber- Default
100 valueProgress.Root...rest- Every prop of
Progress.Rootfrombits-uiexceptchild, children
| Prop | Type | Default |
|---|---|---|
tone The fill's colour on the severity scale. Left out, the primary colour. | "neutral" | "accent" | "info" | "success" | "warning" | "destructive" | |
ref bindable | HTMLElement | null | null |
class | string | |
max | number | 100 |
value | Progress.Root | |
...rest | Every prop of Progress.Root from bits-ui except child, children | |