0.0.7 • Published 2 years ago

@mariaextrawest/spin-wheel-component v0.0.7

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
2 years 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

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago