1.0.4 • Published 5 months ago

@brighthr/component-donut v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 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.4

5 months ago

1.0.3

6 months ago

1.0.2

9 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.0.3

1 year ago

0.0.4

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago