Usage
aria-label attribute when the Label prop is not provided.
This is required for accessibility.
Sizes
Use the Size parameter to control the height of the progress bar.
Colors
Use the Color parameter to set the color of the progress bar.
Indeterminate
You can use the Indeterminate prop to display an indeterminate progress bar.
This is useful when you don't know how long an operation will take.
Striped
Use the Striped parameter to render the progress bar with a striped pattern.
With Label
Use the Label parameter to display a custom label above the progress bar.
Label prop you don't need to pass aria-label anymore.
With Value
Use the ShowValueLabel parameter to display the progress value/percentage.
Custom styles
This component supports named slots, which allow custom styles to be applied to specific parts of the component:
- Base: The base container of the progress bar.
- LabelWrapper: The wrapper for the label and value label.
- Label: The label of the progress bar.
- Value: The value label of the progress bar.
- Track: The track (background) of the progress bar.
- Indicator: The indicator (filled portion) of the progress bar.
You can customize the component(s) by passing any Tailwind CSS classes to the following component parameters:
Progress
Class: The CSS class names to style the progress bar track.Classes: The CSS class names to style the progress bar slots.
API
See the API references below for a complete guide to all the parameters available for the components mentioned here.