A simple iPod click wheel.
npm install clickwheel-jsSource code here
Made with <3 by AE Studio
npm install --save clickwheel-js
or
yarn add clickwheel-js
``
import React from 'react';
import ClickWheel from 'clickwheel-js';
function Demo(){
return(
onCenterClick={() => console.log('onCenterClick')}
onMenuClick={() => console.log('onMenuClick')}
onPlayPause={() => console.log('onPlayPauseClick')}
onNext={() => console.log('onNextClick')}
onPrevious={() => console.log('onPreviousClick')}
/>
)
}
export default Demo;
``
| Name | Type | required |
| ------------- | -------- | -------- |
| scrollerId | string | yes |
| onCenterClick | function | no |
| onMenuClick | function | no |
| onPlayPause | function | no |
| onNext | function | no |
| onPrevious | function | no |