react-toolbox/components/progress_bar
Javi Velasco 6329c5d11d Make tests pass 2016-05-25 00:25:43 +02:00
..
__test__ Make tests pass 2016-05-25 00:25:43 +02:00
ProgressBar.js Make tests pass 2016-05-25 00:25:43 +02:00
_config.scss Added !default to all config values as per #424 2016-04-02 00:47:39 +02:00
index.js Remove jsx extension from imports in components 2015-11-28 20:24:46 +01:00
readme.md Migrate ProgressBar to themr 2016-05-22 21:50:22 +02:00
theme.scss Migrate ProgressBar to themr 2016-05-22 21:50:22 +02:00

readme.md

Progress Bar

Minimize visual changes that occur while your app loads content by representing each operation with a single activity indicator. For example, a refresh operation should display either a refresh bar or an activity circle, but not both.

import ProgressBar from 'react-toolbox/lib/progress_bar';
import theme from 'react-toolbox/lib/progress_bar/theme';

const ProgressTest = () => (
  <div>
    <ProgressBar type="circular" mode="indeterminate" theme={theme} />
    <ProgressBar type="linear" mode="determinate" value={83} buffer={90} theme={theme} />
  </div>
);

Properties

Name Type Default Description
buffer Number 0 Value of a secondary progress bar useful for buffering.
className String '' Additional class name to provide custom styling.
max Number 100 Maximum value permitted.
min Number 0 Minimum value permitted.
mode String indeterminate Mode of the progress bar, it can be determinate or indeterminate.
multicolor Boolean false If true, the circular progress bar will be changing its color.
type String linear Type of the progress bar, it can be circular or linear.
value Number 0 Value of the current progress.

Theming

You can take a look to the _config.scss variables. The themed key for this component is ToolboxProgress, it should implement the following interface:

Name Description
buffer Used to style the buffer element in the linear progress.
circle Used for the circle element in the circular progress.
circular Used for the root element when the type is circular.
indeterminate Added to the root element if mode is indeterminate.
linear Used for the root element when the type is linear.
multicolor Added to the root if the component is multicolor (circular).
path Used for the inner path in the circular progress.
value Used to style the value element in the linear progress.