0.0.7 • Published 1 year ago

@mariaextrawest/spin-wheel-component v0.0.7

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
1 year ago

Spin The Wheel Component

Library which provides game component for random choices and prizes

Instalation

npm i @mariaextrawest/spin-wheel-component

Usage

<SpinnerComponent handleResult={console.log} />

Props

ValueTypeDescriptionRequired
handleResult(result: number, prize: number) => voidFunction will be called after result is receivedtrue
backgroundstringBackground imagefalse
prizeMap{1: number; 2: number; ..., 8: number}Object with format {result: prize}false
0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago