81acda7162
* Add postcss-next postcss-include and reporter
* Add stylelint
* Add CSS colors
* Add CSS custom media queries
* Use dashes for CSS colors
* Add base CSS variables
* Remove AppBar SASS dependency from spec page
* Migrate AppBar style to PostCSS
* Migrate Avatar style to PostCSS
* Migrate Ripple style to PostCSS
* Remove unneeded media CSS import in Avatar
* Add shadows to CSS variables
* Migrate Button style to PostCSS
* Update webpack test config and linting from npm
* Migrate Input style to PostCSS
* Add missing input config variables for Dropdown and Autocomplete
* Migrate Chip style to PostCSS
* Migrate Autocomplete style to PostCSS
* Migrate Dropdown style to PostCSS
* Migrate animations to PostCSS
* Migrate Card style to PostCSS
* Migrate Checkbox style to PostCSS
* Migrate DataPicker style to PostCSS
* Migrate Dialog style to PostCSS
* Migrate Drawer style to PostCSS
* Add postcss-mixins and postcss-each
* Migrate Layout style to PostCSS
* Fix bug in button theme
* Bugfix in avatar css
* Add some missing nesting notations
* Migrate Link style to PostCSS
* Migrate List style to PostCSS
* Migrate Menu style to PostCSS
* Migrate Navigation style to PostCSS
* Migrate Overlay style to PostCSS
* Migrate ProgressBar style to PostCSS
* Migrate Radio style to PostCSS
* Migrate Slider style to PostCSS
* Migrate Snackbar style to PostCSS
* Migrate Switch style to PostCSS
* Migrate Table style to PostCSS
* Migrate Tabs style to PostCSS
* Migrate TimePicker to PostCSS
* Migrate Tooltip styles to PostCSS
* Update webpack config for testing and tests
* Migrate commons to PostCSS
* Remove sass from main project
* Bye from docs to sass
* Build with CSS
* Remove unneded deps for sass in docs subproject
* Fix tests
* use 4p shadow in AppBar as spec indicates
* Fixed typo in list/config.css
* Fix tests
* Fix linter errors
* Latest build
* Release 2.0.0-beta.0
* Remove sass lint
* fixes old sass var in css config
* Update linter
* New Table implementation
* Fix old sass var in list/config.css
See
|
||
---|---|---|
.. | ||
__test__ | ||
ProgressBar.js | ||
config.css | ||
index.d.ts | ||
index.js | ||
readme.md | ||
theme.css |
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';
const ProgressTest = () => (
<div>
<ProgressBar type="circular" mode="indeterminate" />
<ProgressBar type="linear" mode="determinate" value={83} buffer={90} />
</div>
);
If you want to provide a theme via context, the component key is RTProgressBar
.
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. |
disabled |
Boolean |
false |
If true, component will be disabled. |
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. |
Theme
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. |