Skip to main content

Starwind UI v1.12 is now available!

Progress

Installation

Usage

Variants

Indeterminate

When you need to show a loading state without a specific value, omit the value prop to create an indeterminate progress bar.

Dynamic Updates

The Progress component can be updated dynamically by changing the data-value attribute. This is useful for showing real-time progress like file uploads, form completion, or step-by-step processes.

Interactive Progress Example

API Reference

Progress

An accessible progress bar component with multiple variants for visual feedback.

PropTypeDefault
idstring-
valuenumber-
maxnumber100
variant"default" | "primary" | "secondary" | "info" | "success" | "warning" | "error""default"
classstring-
<Progress id="progress" value={50} variant="default" />

Additional Notes:

  • value: When omitted, the progress bar enters an indeterminate state and displays a loading animation
  • max: Maximum value for the progress bar
  • The component can be updated dynamically by changing the data-value attribute

Changelog

v1.1.0

  • Add data-slot attribute to enable global styling updates

v1.0.0

  • Initial release with starwind v1.7.0