0.0.7 • Published 1 year ago
@mariaextrawest/spin-wheel-component v0.0.7
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
Value | Type | Description | Required |
---|---|---|---|
handleResult | (result: number, prize: number) => void | Function will be called after result is received | true |
background | string | Background image | false |
prizeMap | {1: number; 2: number; ..., 8: number} | Object with format {result: prize} | false |