1.0.6 • Published 11 months ago

@brighthr/component-donut v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Donut

To install, type the following into the command line at the root of your project:

npm i @brighthr/component-donut

To implement the Donut component into your project you’ll need to add the import:

import Donut from '@brighthr/component-donut';

After adding import into your project you can use it simply like:

<Donut />

Props

NameTypeDefaultDescription
animateClockWisebooleanfalseIf true, the donut animation will play clockwise.
childrenReact.ReactNodeSets the information to display inside the donut.
classNamestringSets the className
percents{percent: number, percentageUsed: number, donutCurrentTotal: number, color: string,}Object of 4 keys, percent is a number for how filled the donut should animate. `
1.0.6

11 months ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.3

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago