1.0.0 • Published 9 years ago
sh-react-progressbar v1.0.0
sh-react-progressbar
A simple Progressbar component for ReactJS application written in TypeScript.
Usage
Webpack/JSPM Applications Usage (TypeScript)
import {Progressbar} from 'sh-react-progressbar';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
const B = ReactDOM.render(<Progressbar value={10} />,
document.getElementById('ProgressbarContainer')); Browser Usage
<link rel="stylesheet" src="path_to/Progressbar.min.css"></script>
<script type="text/javascript" src="path_to/Progressbar.min.js"></script>
<script type="text/javascript">
var B = ReactDOM.render(React.createElement(ShReact.Progressbar,{value:10}),
document.getElementById('ProgressbarContainer'));
</script>Options
value: required properties which is the current value of the progressbar.min: optional the minimum value of the progressbar.max: optional the maximum value of the progressbar.formatValue: optional a callback to format the value shown on the progressbar.className: optional a class name to add to the rootdivelement of the component.
1.0.0
9 years ago