Skip to content

shadcn.io is an independent project built on shadcn/ui

Free

Success Progress for Solid

A progress bar at 70 percent in the success color, on a track tinted with that same color.

UI library: Ark UI

A bar at 70 percent. The fill is the success color, and the track is a lighter tint of it. No label is shown.

Use the success color when the task is going well, not as the default for every bar. A Status can mark done once you drop the meter. In Solid, Ark UI does not time the upload.

Preview

Preview width

Installation

MCP · Pro
Make your AI a shadcn expert
Your agent installs components, builds pages and restyles your app from one prompt, in Claude Code, Cursor or VS Code.
Part of Pro

Anatomy

Progress anatomy: root, label, value, track, indicator

Usage

<Progress aria-label="Upload progress" class="w-full max-w-md **:data-[slot=progress-indicator]:bg-success *:data-[slot=progress-track]:bg-success/20" value={70} />

FAQ

How is the bar colored?

With classes on Progress, since it has no color prop. **:data-[slot=progress-indicator]:bg-success colors the fill, which sits inside the track. *:data-[slot=progress-track]:bg-success/20 tints the track.

Why the success token and not a palette color?

success is a theme color, so it follows light and dark mode and any theme you switch to. A class like bg-green-500 stays the same everywhere.

Does 70 pick the color?

No. value only sets the amount; the color classes apply at any value. Change them yourself when the state changes, such as when an upload fails.

What is the accessible name?

Ark UI puts the progressbar role on the track and names it with the value text, here 70%. The aria-label, Upload progress, sits on the root element, so put what the bar measures in visible text nearby when it matters.

Can the color carry the meaning on its own?

No. The color isn't announced, and not everyone can tell colors apart. Say what it means in words beside the bar, such as Upload failed or Storage almost full.

How do I update the 70?

Change value as the work advances. This demo passes a fixed 70. Always pass value: without one, Ark UI starts the bar at 50.

API Reference

Progress

Sets aria-label="Upload progress" and value={70}. The rest is on the Progress page.