ProgressBar
A versatile progress indicator with multiple variants, sizes, layouts, and support for indeterminate, buffered, and multi-segment modes.
Basic
Basic Progress Bar
Simple progress bars with different values
import { ProgressBar } from 'fluxo-ui';
function MyComponent() {
return (
<div className="space-y-4">
<ProgressBar value={25} />
<ProgressBar value={50} />
<ProgressBar value={75} />
<ProgressBar value={100} />
</div>
);
}Variants
Color Variants
All available color variants
Sizes
Size Options
Five size options from extra small to extra large
Layouts
Layout Styles
Different visual styles for the progress bar
Labels & Values
Labels & Custom Templates
Progress bars with labels and custom value templates
Indeterminate
Indeterminate Mode
For when progress duration is unknown
Buffer
Buffered Progress
Progress with buffer indicator for streaming content
Multi Segment
Multi-Segment Progress
Stacked segments representing multiple values
Dynamic Progress
Animated Progress
Live updating progress bar
Import
import { ProgressBar } from 'fluxo-ui';Props
valuenumber"-"Current progress value
valuenumber"-"Current progress value
maxnumber"100"Maximum value
maxnumber"100"Maximum value
minnumber"0"Minimum value
minnumber"0"Minimum value
variant'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info'"'primary'"Color variant
variant'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info'"'primary'"Color variant
size'xs' | 'sm' | 'md' | 'lg' | 'xl'"'md'"Bar height/text size
size'xs' | 'sm' | 'md' | 'lg' | 'xl'"'md'"Bar height/text size
layout'default' | 'rounded' | 'sharp' | 'striped' | 'animated'"'default'"Visual layout style
layout'default' | 'rounded' | 'sharp' | 'striped' | 'animated'"'default'"Visual layout style
showValueboolean"false"Show the progress value text
showValueboolean"false"Show the progress value text
valueTemplatestring | ((value, max) => ReactNode)Custom value display. Use {value}, {max}, {percent} placeholders or a render function
valueTemplatestring | ((value, max) => ReactNode)Custom value display. Use {value}, {max}, {percent} placeholders or a render function
labelReactNodeLabel displayed above the bar
labelReactNodeLabel displayed above the bar
sublabelReactNodeSecondary label next to the label
sublabelReactNodeSecondary label next to the label
indeterminateboolean"false"Show indeterminate animation
indeterminateboolean"false"Show indeterminate animation
buffernumberBuffer value for buffered progress display
buffernumberBuffer value for buffered progress display
multipleValuesProgressBarSegment[]Array of segments for stacked progress
multipleValuesProgressBarSegment[]Array of segments for stacked progress
classNamestringAdditional CSS class
classNamestringAdditional CSS class
disabledboolean"false"Disabled state with reduced opacity
disabledboolean"false"Disabled state with reduced opacity
ariaLabelstringAccessible label
ariaLabelstringAccessible label
idstringHTML id attribute
idstringHTML id attribute
Features
Multiple Variants
Six color variants including primary, success, warning, danger, info, and default
Flexible Sizing
Five size options from xs to xl to fit any UI context
Indeterminate Mode
Animated indeterminate state for unknown progress duration
Buffer Support
Buffered progress display for streaming or multi-phase operations
Multi Segment
Stacked segments for showing multiple values in a single bar
Custom Templates
Value template with placeholders or render functions for full control