0.0.9 • Published 4 years ago

color-statistics v0.0.9

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

color-statistics

React color-statistics

NPM version build status

node version npm download

Screenshot

Browsers support

IE / EdgeFirefoxChromeSafariOpera
IE 8 + ✔Firefox 31.0+ ✔Chrome 31.0+ ✔Safari 7.0+ ✔Opera 30.0+ ✔

Install

color-statistics

Usage

var Statistics = require('color-statistics');
var React = require('react');
var ReactDOM = require('react-dom');

ReactDOM.render(
  <Statistics title='' align='left' type='success' tip={<span>Statistics</span>} />,
  container,
);

Examples

npm start and then go to http://localhost:9001

Online examples: github-pages or vercel

API

Props

nametypedefaultdescription
style?React.CSSProperties{}custom container style
titleStyle?React.CSSProperties{}custom title style
numberStyle?React.CSSProperties{}custom number style
tipStyle?React.CSSProperties{}custom tip style
typestring'primary'one of 'primary', 'success', 'warning', 'info'
alignstring'right'one of 'left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'
showTipboolean | stringtrueshow tip icon or not
tipstring | ReactNode''tips info
numberstring | numbernumber

Development

npm install
npm start

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

License

color-statistics is released under the MIT license.

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago