Skip to main content

Progress

The Progress component displays the completion status of a task or process. It supports determinate progress, striped styles, animations, labels, and utility props.

Import​

import { Progress } from "@promethey/bsui";

Note

Badge inherits all utility props supported by the Prime component, including layout, spacing, typography, colors, borders, sizing, positioning, and other Bootstrap utility APIs.

Basic usage​

Progress values​

Control the progress using the now, min, and max props.

Labels​

Display the progress percentage automatically.

Custom content​

Render custom content inside the progress bar.

Colors​

Use utility props to customize the progress bar color.

Striped​

Apply a striped appearance.

Animated​

Animate the striped background.

Multiple bars​

Combine multiple progress bars within a single progress container.

Utility props​

All utility props provided by Prime are supported.

API​

Progress​

PropTypeDefaultDescription
childrenReactNode—One or more Progress.Bar components.
classNamestring—Additional CSS classes.
styleobject—Inline styles.

Progress.Bar​

PropTypeDefaultDescription
childrenReactNode—Custom content displayed inside the bar.
classNamestring—Additional CSS classes.
styleobject—Inline styles.
nownumber0Current progress value.
minnumber0Minimum progress value.
maxnumber100Maximum progress value.
displayedPercentbooleanfalseDisplays the computed percentage as text.
stripedbooleanfalseApplies a striped appearance.
animatedbooleanfalseAnimates the striped background.