1.0.11 • Published 6 years ago

@crpt/react-percent-bar v1.0.11

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

react-percent-bar

Travis npm package Coveralls

Percent bars.

Usage

import { PercentBar } from  "@crpt/react-percent-bar";


<PercentBar
  title="Some title"
  value="Some value"
  count={4}
  values={null}
/>
PropNameDescriptionExample
title: StringTitle of PercentBar.<PercentBar title="Some title" />
value: StringValue of PercentBar in percents. If no value passed, total value is a sum of child values.<PercentBar value="55.6" />
count: StringCount of PercentBar in units. If no count passed, total count is a sum of child counts.<PercentBar count="55612" />
values: ArrayChild values.`<PercentBar values={[ {id: 1, percent: 4, count: 8, title:'Порча товара'},
                                                       {id: 7, percent: 8, count: 16, title:'Продажа китайцам'},
                                                             {id: 2, percent: 2, count: 4, title:'Хищение товара'},
                                                             {id: 3, percent: 1, count: 2, title:'Отбор контрольных образцов'},
                                                             {id: 4, percent: 1.5, count: 3, title:'Демонстрация на выставках и ярмарках'},
                                                             {id: 5, percent: 1.5, count: 3, title:'Иное'},
                                                           ]} />` |
1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago