KendoReact ProgressBars Overview

The KendoReact ProgressBars package contains the ProgressBar and ChunkProgressBar components.

The KendoReact ProgressBars components are part of the KendoReact library and are distributed through NPM under the kendo-react-progressbars package.

The ProgressBars package is part of KendoReact, a professionally built commercial UI library. To try out this package you need to sign up for a 30-day trial, which gives you access to the full KendoReact library.

Basic Usage

The following example demonstrates the ProgressBar and ChunkProgressBar components in action.

const App = () => {
    const value = 55;
    const chunks = 5;

    return (
      <div className="container">
        <div className="row">
          <div className="col-sm mb-2">
            ProgressBar
          </div>
          <div className="col-sm mb-2">
            Chunk ProgressBar
          </div>
        </div>
        <div className="row">
          <div className="col-sm">
            <ProgressBar value={value} />
          </div>
          <div className="col-sm">
            <ChunkProgressBar value={value} chunkCount={chunks}/>
          </div>
        </div>
        <div className="row">
          <div className="col-sm">
            <div>Value: <strong>{value}</strong></div>
            <div>Chunk count: <strong>{chunks}</strong></div>
          </div>
        </div>
      </div>
    );
};

ReactDOM.render(
    <App />,
    document.querySelector('my-app')
);

Installation

  1. Download and install the package. Use Node.js v5.0.0 or later.

    npm install --save @progress/kendo-react-progressbars
  2. Once installed, import the package module.

    // ES2015 module syntax
    import { Progressbar, ChunkProgressBar } from '@progress/kendo-react-progressbars';
    // CommonJS format
    const { Progressbar, ChunkProgressBar } = require('@progress/kendo-react-progressbars');
  3. You are required to install one of the Kendo UI themes to style your components. For more information on how to add the styles, refer to the article on getting started.

Dependencies

The ProgressBars package requires you to install the following peer dependencies in your application:

  • react 16.8.2*
  • react-dom