react-popup-picker
v1.0.3
Published
Picker Component for React
Downloads
13
Readme
react-popup-picker
Picker Component for React.
[]
Usage
Install:
yarn add react-popup-picker
And add the Popup-Picker in your component:
<PopupPicker values={[1, 2, 3, 4, 5, 6, 7, 8, 9]} columns={3} onPicked={this.handlePicked}>?</PopupPicker>
Props:
values
defines the "pickable" values the user can choose fromcolumns
the "pickable" values are divided into rows and columns based on the limit specified column-sizeonPicked
callback function to handle picked values
Dev
Serves examples.js and bind the Picker component itself for development purpose.
yarn run start
Lint
Based on eslint and extending the Airbnb-Style Guide.
yarn run lint
Test
By using Jest
yarn run test
Build
yarn run build