NOCTA UI

Progress

A progress indicator component with multiple variants, sizes, and animation support

Installation

Install the Progress component using the nocta-ui CLI:

npx nocta-ui add progress

Import the component:

import { Progress } from '@/components/ui/progress';

Examples

Default Progress

Basic progress65%

Variants

The Progress component supports four variants: default, success, warning, and destructive.

Default progress60%
Success progress75%
Warning progress45%
Error progress30%

Sizes

Three size options are available: sm, md, and lg. The default size is md.

Small
Medium
Large

Animated Progress

Progress automatically animates when the value changes.

Animated progress0%

Custom Maximum Value

Set a custom maximum value using the max prop.

Custom max value75%
Large max value50%

Without Label

Hide the label by omitting the showLabel prop.

Api Reference

PropTypeDefaultDescription
valuenumber0Current progress value
maxnumber100Maximum progress value
variant'default' | 'success' | 'warning' | 'destructive''default'Progress bar color variant
size'sm' | 'md' | 'lg''md'Progress bar height
showLabelbooleanfalseShow progress label and percentage
indeterminatebooleanfalseShow indeterminate/loading state
classNamestring''Additional CSS classes
aria-labelstringAccessible label for screen readers

The Progress component also accepts all standard HTML div attributes.