Progress
npx shadcn add @klarhimmel/progressCopy for AIExamples
Determinate
States
Steps
DetailsAbout, usage, props and more
A bar for a task with a known share done, or an indeterminate one while it works.
When to use
Use for
A task with a known share done, or work with an unknown end.
Not for
A wait under a second. Not a step indicator for a form.
Pairs with
Text, Banner, Button.
Preview
Import
Import
- Files
- progress.tsx, in components/klarhimmel/ui/. With it: theme, utils.
- Render in
- Render it inside <Theme>, once near the root of your app. Tokens and fonts are scoped to it, so outside it the component is unstyled.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | required | Required: what is progressing ("Upload", "Profile completeness"). |
value | number | - | 0 to `max`. Omit for an indeterminate bar: work is happening and the end is unknown. |
max | number | 100 | The value that means done. |
showValue | boolean | - | Show the label and the percentage above the bar. |
className | string | - | Extra classes, merged after the component's own. |