Progress
Progress
progress bar is a component which displays progress of a process in which user is involved. Their color, shape, and animation can be customized.
If it takes too long for your website to load up, your user will be less stressed about it when he sees a simple progress bar. It means as much as “Everything is fine. The content you want to see will load in a few seconds”.
Circular Progress Color Variations
Pro ComponentDefault Progress example.

import React from "react";import { CDBCircularProgress, CDBContainer } from "cdbreact";export const Progress = () => {return (<CDBContainer><CDBCircularProgressvalue={25}max={100}min={0}text={`${25}%`}/><CDBCircularProgressvalue={50}max={100}min={0}text={`${50}%`}color="primary"/><CDBCircularProgressvalue={95}max={100}min={0}color="secondary"text={`${95}%`}/><CDBCircularProgressvalue={35}max={100}min={0}color="danger"text={`${35}%`}/><CDBCircularProgressvalue={47}max={100}min={0}color="info"text={`${47}%`}/><CDBCircularProgressvalue={100}max={100}min={0}color="success"text={`${100}%`}/></CDBContainer>);};
Circular Progress Size Variations
Pro Component
import React from "react";import { CDBCircularProgress, CDBContainer } from "cdbreact";export const Progress = () => {return (<CDBContainer><CDBCircularProgressvalue={25}max={100}min={0}text={`${25}%`}size="lg"/><CDBCircularProgressvalue={50}max={100}min={0}text={`${50}%`}size="sm"/><CDBCircularProgressvalue={95}max={100}min={0}text={`${95}%`}size="md"/></CDBContainer>);};
React Progress Default
import React from "react";import { CDBProgress, CDBContainer } from "cdbreact";export const Progress = () => {return (<CDBContainer><CDBProgress value={69} text={`${69}%`}/></CDBContainer>);};
React Progress Color Variants

import React from "react";import { CDBProgress, CDBContainer } from "cdbreact";export const Progress = () => {return (<CDBContainer><CDBProgressvalue={10}text={`${10}%`}colors="primary"/><CDBProgressvalue={20}text={`${20}%`}colors="secondary"/><CDBProgressvalue={70}text={`${70}%`}colors="success"/><CDBProgressvalue={40}text={`${40}%`}colors="danger"/><CDBProgressvalue={90}text={`${90}%`}colors="info"/><CDBProgressvalue={60}text={`${60}%`}colors="warning"/></CDBContainer>);};
Fixed Height

import React from "react";import { CDBProgress, CDBContainer } from "cdbreact";export const Progress = () => {return (<CDBContainer><CDBProgressvalue={45}colors="dark"height={30}text={`${45}%`}/><CDBProgressvalue={60}colors="success"height={20}text={`${60}%`}/><CDBProgressvalue={80}colors="danger"height={40}text={`${80}%`}/></CDBContainer>);};
API
In this section you will find advanced information about the Progress component. You will find out which modules are required, what are the possibilities of configuring the component, and what events and methods you can use to work with it.
Contrast Progress Import Statement
You need to import the Contrast Progress component first before using it.
import { CDBProgress, CDBCircularProgress} from "cdbreact";
API Reference: Contrast Progress Properties
The table below shows the configuration options of the CDBProgress component.
| Name | Type | Default | Description | Example |
|---|---|---|---|---|
| className | String | Adds custom classes to bar wrapper | <CDBProgress className="myClass" ... /> | |
| barClassName | String | Adds custom classes to colorful bar | <CDBProgress barClassName="myClass" ... /> | |
| tag | String | div | Changes default input tag | <CDBProgress tag="input" ... /> |
| disable | Boolean | false | Disables Progress component | <CDBProgress disabled .../> |
| colors | String | dark | Changes bar color; accepts CDB predefined color classes | <CDBProgress colors="primary" ... /> |
| height | String | 10px | Sets custom height of the bar | <CDBProgress height="50px" ... /> |
| max | Number | 100 | Sets maximum value of progress bar | <CDBProgress max={200} ... /> |
| min | Number | 0 | Sets minimum value of progress bar | <CDBProgress min={0} ... /> |
| value | Number | 0 | Sets current value of progress bar | <CDBProgress value={40} ... /> |
| wrapperStyle | Object | {} | Sets additional inline styles for bar's wrapper | <CDBProgress wrapperStyle={{width: "50%"}} ... /> |