Skip to content
esc

Progress

Feedbackshadcn/ui

A horizontal bar for a known amount: upload progress, onboarding steps, a budget or a plan quota used.

When to use

  • Show the number next to it, e.g. '7.2 GB of 10 GB'.
  • Switch to warning above 80% and destructive above 100% for quotas.
  • Don't use it for unknown durations; use Spinner or Skeleton.

Accessibility

Role
progressbar
Keyboard
Not focusable.
Notes
Give it aria-label or aria-labelledby, e.g. 'Storage used'.

Props

  • value

    number

    0 to 100. Values out of range are clamped.

  • variant= 'default'

    'default' | 'neutral' | 'success' | 'warning' | 'destructive'

    Meaning.

Prompt for your agent

Use the UnbuiltUI Progress. Call unbuilt_get_component("Progress") first and follow its spec: variants, states, usage rules and accessibility.

unbuilt_get_component returns

5 variants1 state2 props3 usage rules2 a11y notes6 tokens1 example

Add it with shadcn

$npx shadcn add https://unbuiltui.com/r/progress.json

Tokens · 6

bg.subtleaccent.defaultbg.inversesuccess.defaultwarning.defaultdanger.default