Skip to content

Progress bar

Progress-bar component visually represents the progression of a task or process. It informs the user about occuring action and offers multiple variations.

Examples

The first example demonstrates the basic usage of the progress bar component. It uses the default color, displays text, and shows the current value.


The next example demonstrates different component states. The first progress bar is in the error state and also uses the reversed property, rendering progress from right to left. The second progress bar is in the warning state. These states are useful for indicating the status of various tasks.


The final example demonstrates the use of the mode property. The progress bar is shown in light mode with rounded edges and hidden text.

Props

PropertyTypeDefaultDescription
visiblebooleantrueControls the progress bar's visibility. When true, the progress bar is visible; when false, it is hidden.
positionnumber[]0 0 0Specifies the progress bar's position.
sizeenum (small, medium, large)mediumSets the progress bar's size, adjusting padding, font size, and layout compactness accordingly.
valuenumber100Represents the current progress as a percentage. This determines how much of the bar is filled.
textvisibilitybooleanfalseControls whether the current progress percentage is displayed. If true, the value is shown (e.g., 60%).
textcolorstringblackSpecifies the color of the progress bar's text. If the contrast with the background is insufficient, the text color will not be applied.
colorstring (blue, #fff)#00BA92Defines the primary color of the progress bar, affecting elements such as text and background.
modestring (light, dark)""Specifies the color scheme of the progress bar, supporting either a light or dark theme.
statestring (success, warning, error, disabled, indicating)""Indicates the current state of the component. This property has priority over other appearance-related properties to reflect important statuses such as errors or warnings.
roundedbooleanfalseSpecifies whether the progress bar has rounded edges.
reversedbooleanfalseWhen true, the progress direction is reversed (right-to-left mode).