Progress bars show how far along a process is. They fill from left to right asDocumentation Index
Fetch the complete documentation index at: https://prefab.prefect.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
value approaches max.
Basic Usage
Range
By defaultmax is 100 and min is 0, but you can set either to define a custom range. The renderer normalizes the value to a percentage automatically. Set max for step-style counting, or use both min and max when the range doesn’t start at zero.
Variants
Semantic variants color the progress bar to communicate meaning at a glance:Sizes
Control the bar thickness withsize. The default is a medium weight suitable for most layouts; use sm for compact spaces and lg for dashboard-style data displays:
Custom Colors
Useindicator_class for arbitrary colors beyond the built-in variants:
Target Marker
Thetarget prop renders a vertical marker line on the bar at a specific position, so you can compare actual progress against a goal. Set max to the ceiling of the gauge so both value and target land at meaningful positions. Use target_class to style the marker.
Vertical Orientation
Setorientation="vertical" for vertical progress bars. The default height is set by the theme — wrap in a sized container for custom heights:
Dynamic Progress with Labels
Bind a slider to a progress bar so the label reflects the actual value. Forward-declare the reactive reference with a lambda so it can be used before the slider appears in the tree:API Reference
Progress Parameters
Current progress value. Can be a template expression for dynamic binding.
Minimum value. The renderer normalizes
(value - min) / (max - min) to a 0–100 percentage.Maximum value.
Visual variant:
"default", "success", "warning", "destructive", "info", "muted".Bar thickness:
"sm" (4px), "default" (6px), "lg" (10px).Target marker position on the bar. Renders a vertical line at this value within the min/max range. Can be a template expression for dynamic binding.
Tailwind classes for the indicator fill bar. Overrides variant coloring.
Tailwind classes for the target marker line.
Layout direction:
"horizontal" or "vertical".Tailwind classes for the track (outer container).
Protocol Reference
Progress