Skip to main content

Overview

HuxProgress is a customizable linear progress indicator that displays the completion status of a task or process. It provides smooth animations, consistent styling, and automatic theme adaptation, making it perfect for showing upload progress, download status, or any task completion percentage.

Basic Usage

Basic Progress

Progress with Label

Progress with Value Display

Variants

HuxProgress supports three visual variants to indicate different states:

Primary Variant

Success Variant

Destructive Variant

Sizes

HuxProgress comes in three size variants:

Small

Medium (Default)

Large

Custom Values

By default, HuxProgress uses values between 0.0 and 1.0. You can customize the range:
When using custom min/max values, the displayed value will show as a number instead of a percentage.

Custom Colors

You can customize both the progress fill color and background color:

Custom Border Radius

Animated Progress

HuxProgress automatically animates when the value changes:

API Reference

HuxProgress

HuxProgressSize

  • small - Small progress bar (4px height)
  • medium - Medium progress bar (6px height)
  • large - Large progress bar (8px height)

HuxProgressVariant

  • primary - Primary progress using theme primary color
  • success - Success progress using green color
  • destructive - Destructive progress using red color

Best Practices

  • Use progress indicators for operations that take more than a few seconds
  • Show labels to provide context about what is loading
  • Use the success variant for completed operations
  • Use the destructive variant for errors or failed operations
  • Consider using showValue: true when precise progress information is important
  • For uploads/downloads, update the progress value frequently for smooth animation