Dashral Pro is on the wayGet 30% off at launch

Dashral

Progress

Shows how far a task has progressed.

$ pnpm dlx shadcn@latest add https://dashral.com/r/progress.json
Storage used64%

Installation

$ pnpm dlx shadcn@latest add https://dashral.com/r/progress.json

Adds the component, the components it builds on, its npm packages and the theme tokens it uses. Using Dashral often? Add the registry to components.json once:

components.json
{
  "registries": {
    "@dashral": "https://dashral.com/r/{name}.json"
  }
}

Then add components by name:

$ pnpm dlx shadcn@latest add @dashral/progress

Usage

example.tsx
import { Progress } from "@/components/dashral/progress"

<Progress value={64} aria-label="Upload progress" />

Examples

Colors

color sets the bar; the track is a pale version of it.

Getting-started checklist

Tick a step and the bar fills; green with a message when everything's done.

Get started

1 of 4

Plan usage

Each limit turns amber past 80% and red past 95%.

Team plan

Resets Nov 1

API requests41,200 of 50,000

Running low. New ones stop at the limit.

Seats9 of 10

Running low. New ones stop at the limit.

Storage3.1 GB of 10 GB

API reference

Progress

Also takes every prop of Radix Progress(opens in a new tab).

PropTypeDefault
valuenumber | null

0–100; null for indeterminate.

—
color"primary" | "neutral" | "info" | "success" | "warning" | "destructive" | "highlight"

The bar; the track is a pale version of it.

"primary"
classNames{ indicator }

Classes for the bar.

—

Accessibility

  • role="progressbar" with aria-valuenow. Label it (aria-label or aria-labelledby).

Motion

  • Fills from the left when it first shows, then slides to new values.