• Getting Started
  • Components
  • Github
  • Go pro
energyGetting started
  • Introduction
dComponents
  • Button Components
  • Grid Components
  • Input Components
  • Layout Components
  • Toast Components
  • Widget Components
  • Alert
  • Badge
  • Breadcrumb
  • Callout
  • Card
  • Carousel
  • Charts
  • Collapse
  • CreateElement
  • DataTable
  • Dropdown
  • ElementCover
  • Embed
  • Fade
  • Form
  • Icon
  • Img
  • Jumbotron
  • Link
  • ListGroup
  • Media
  • Modal
  • Nav
  • Navbar
  • Pagination
  • Popover
  • Progress
  • Spinner
  • Switch
  • Tabs
  • Toggler
  • Tooltip

Progress

Progress bars component can be used for showing the progress of a task or action to the users. Progress supports for stacked bars, animated backgrounds, and text labels.


Usage

Example

42
86
55
25
16

50
75


Script


  let counter = 86;

  return (
    <div className={'mt-2'}>
      <CProgress
        color="dark"
        value={42}
        showValue
        className="mb-1 bg-white"
      />
      <CProgress
        value={counter}
        showValue
        className="mb-1 bg-white"
      />
      <CProgress className="mb-1 bg-white">
        <CProgressBar
          showValue
          value={counter*(6/10)+3}
          color="success"
          height="30px"
        />
        <CProgressBar
          showValue
          value={counter*(2.5/10)+3}
          color="warning"
        />
        <CProgressBar
          showValue
          value={counter*(1.5/10)+3}
          color="danger"
        />
      </CProgress>
      <hr/>
      <CProgress striped value={2 * 5} className="mb-1 bg-white" />
      <CProgress striped color="success" value={25} className="mb-1 bg-white" />
      <CProgress animated striped showValue color="info" value={50} className="mb-1 bg-white" />
      <CProgress animated striped showValue color="warning" value={75} className="mb-1 bg-white" />
      <CProgress animated striped color="danger" value={100} className="mb-1 bg-white" />
      <hr/>
      <CProgress size="xs" value={2 * 5} className="mb-1 bg-white" />
      <CProgress size="sm" color="success" value={25} className="mb-1 bg-white" />
    </div>
  )
  


# Features

  • Single or splitted progress bar
  • Diffrent widths heights and styles available
  • Concise syntax for single bar

# Progress API

NameRequiredTypeDefault Value
childrenany
children components
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
sizestring
the size of progress
value(string | number)0
value of the progress bar
max(string | number)100
maximum value of progress
animatedboolean
enable animated striped styling (If enabled setting striped prop is not necessary)
stripedboolean
enable striped styling
colorstring
background color of the component
precisionnumber0
precision in displaying progress value
showPercentageboolean
show precentage value with '%' character as label
showValueboolean
show passed value as label



ProgressBar


Use as a child component of CProgress when you want to split progress bar into multiple bars.

# ProgressBar API

NameRequiredTypeDefault Value
childrenany
children components
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
valuenumber
value of the progress bar
maxnumber
maximum value of progress
animatedboolean
enable animated striped styling (If enabled setting striped prop is not necessary)
stripedboolean
enable striped styling
colorstring
background color of the component
precisionnumber
precision in displaying progress value
showPercentageboolean
show precentage value with '%' character as label
showValueboolean
show passed value as label

  • Components
    • Usage
      • Features
      • API
    • Related
      • CProgress
      • CProgressBar
CoreUI © 2020 creativeLabs.core-logo