@fs-group/draw-s001
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

FS Draw Spin 001

FS Draw spin 001 Logo

Most modern slider with hardware accelerated transitions for ReactJS

NPM npm downloads npm npm

Features

  • use Rive and pixijs

Installation

yarn add @fs-group/draw-s001

Usage

import DrawS001 from '@fs-group/draw-s001';
import 'fs-draw-s001/dist/index.css';


// prize data (length must be 7 pcs)
const data: IData[] = [
    {id: 'A1', imageUrl: asset('/images/prize.png')},
    {id: 'A2', imageUrl: asset('/images/prize.png')},
    {id: 'A3', imageUrl: asset('/images/prize.png')},
    {id: 'A4', imageUrl: asset('/images/prize.png')},
];

export const CustomBanner = () => {
    return <SpinWheel
        data={data}
        targetIndex={targetIndex}
        isDisabled={false}
        isDebug={false}
    />
}

License

MIT © fs-group

Package Sidebar

Install

npm i @fs-group/draw-s001

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

6.1 MB

Total Files

25

Last publish

Collaborators

  • imagine10255