react-select-simple-value
A simple value wrapper for react-select.
Install
yarn add react-select-simple-value
Use
import ReactSelect from 'react-select';import SimpleValue from 'react-select-simple-value'; const MySelect = options value ...props <SimpleValue = => <ReactSelect = /> </SimpleValue>; /* elsewhere in your application */ Component { return <MySelect = ="blue" /> ; }
Props
The following props are accepted, consumed, and passed on to the children
function. Only defaultValue
and value
are augmented.
- defaultValue
- getOptionValue
- isMulti
- options
- value