1.0.1 • Published 8 years ago

react-image-select v1.0.1

Weekly downloads
22
License
MIT
Repository
github
Last release
8 years ago

react-image-select

An Image Select control built with and for React JS

get started

1. install

npm install react-image-select

2. import

import ImageSelect from 'react-image-select';

3. use

<ImageSelect
  images={['/images/apple.png', '/images/banana.png', '/images/pear.png']}
  width={20}
  height={20}
  defaultIndex={2} // will select pear.png
  onChange={this._handleChange}/>