A beautiful and responsive Select Input control for ReactJS with singleselect, multiselect, rangeselect and autocomplete (async) support.
npm install react-selection-box> A beautiful and responsive Select Input control for ReactJS with singleselect, multiselect, rangeselect and autocomplete (async) support.
 
``bash`
npm install react-selection-box
* Single select
* Multiple select
* Range select
* Async select (autocomplete)
See the document page for more examples.
Please see the document page for more examples.
Please see the document page and go to examples.
`jsx
import React from 'react'
import Selection from 'react-selection-box'
import 'react-selection-box/dist/index.css'
const MyComponent = () => {
const handleChange = (value) => {
console.log(value)
}
const options = [
{label: 'Option 1', value: 'option_1', checked: false},
{label: 'Option 2', value: 'option_2', checked: false},
{label: 'Option 3', value: 'option_3', checked: false}
]
return (
name="counties"
label="Select Counties"
className=""
options={options}
onChange={handleChange}
searchable={true}
cleanable={true}
loading={false}
disabled={false}
rtl={false}
translates={{
placeholder: {
search: "Search countries"
}
}}
/>
export default MyComponent;
``
MIT © MostafaRostami72