Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 451 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 451 Bytes

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}/>