react-image-select

An Image Select control built with and for React JS

Usage no npm install needed!

<script type="module">
  import reactImageSelect from 'https://cdn.skypack.dev/react-image-select';
</script>

README

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