Skip to content

Progress

Data Display

Horizontal progress bar with animated fill.

Interactive progressComplete
Open preview

Responsive viewport — resize the window to explore. Direction and density apply only to this preview. Theme applies to the docs too.

Usage

Use for a percentage between zero and 100. Values are visually clamped to that range. Supply role=progressbar and aria-valuemin, aria-valuemax, and aria-valuenow explicitly; the component renders a styled div and forwards HTML attributes.

Import
import { Progress } from "@dashboardpack/core/components/ui/progress";

Available in the included @dashboardpack/core package. Copy the complete example from Source code for all imports and state. Add "use client" when using hooks or event handlers. See installation and theming for project setup.

API reference

Common props and defaults. Slot-specific props are named below; native elements also accept their standard HTML attributes. The component TypeScript definitions are the complete type reference.

Progress props
PropType / DefaultDescription
valuenumber

Default: 0

Current percentage, visually clamped to 0–100.
indicatorClassNamestring

Default: —

Extend the inner indicator styles.
classNamestring

Default: —

Extend the outer track styles.
role / aria-*HTML div attributes

Default: —

Supply accessible progressbar semantics and values.

Build with these too