
- Location:
sabo/src/components/ui/progress.tsx
When to use
- Indicate completion percentage of a determinate process (0–100).
- For indeterminate loading, use a Spinner or Skeleton.
Usage
sabo/src/components/ui/progress.tsx
Key props
Progress percent (0–100). The bar translates based on this value.
Width/height or color overrides (e.g.,
w-64, h-3).Styling tip
- Increase thickness via
h-3orh-4. - Use contextual color by wrapping in themed containers or adjusting
bg-primary.
Accessibility
- Provide nearby text for context (“Uploading 42%”).
- If used as a status, associate with an element describing the task.