Draft. Ported from the shadcn-vue Progress and styled with Beehexa tokens. Not yet approved. It is in the registry so teams can try it; the API may still change before approval.
A progress bar fills from start to end as a task with a known size runs: an import of 1,000 products, an upload, a sync.
When to use
- For a task that takes more than a few seconds and whose size you know, so people can judge how long is left.
- For steps in a long job, such as rows imported out of the total.
When not to use
- When you don’t know how much is left. Use a spinner, after its 1 second wait.
- For a page or panel that is loading. Use a skeleton.
- For a score or a level, such as storage used. That is a meter, not progress.
Content
- Name the bar, with a visible label where you can: “Importing products”.
- Show the count or the percentage in text beside the bar: “640 of 1,000”.
- When the task ends, say so in words (“Stock synced”) and remove the bar or show the result.
Behaviour
- The fill moves with
motion.indicator; under reduced motion it jumps. - It never goes backwards. If a task restarts, say so in text.
Tokens
| Part | Token |
|---|---|
| Height | size.track.default (4 px) |
| Track | color.background.neutral |
| Fill | color.background.neutral.bold |
| Shape | radius.full |
| Motion | motion.indicator |