Progress
Progress bar shows the progress of a task. Uses the native HTML <progress> element with daisyUI styling.
Import
import { Progress } from '@sigx/daisyui';
Basic Usage
Loading preview...
Colors
Loading preview...
Indeterminate
Omit the value prop for an indeterminate (animated) progress bar.
Loading preview...
Different Values
Loading preview...
Custom Max
Use the max prop to set a custom maximum value.
Loading preview...
Full Width
Use class="w-full" for a full-width progress bar.
Loading preview...
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | undefined | Current progress value. Omit for indeterminate state |
max | number | 100 | Maximum value |
color | 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error' | undefined | Color variant |
class | string | undefined | Additional CSS classes |