https://github.com/jossmac/react-select-simple-value
A simple value wrapper for react-select
https://github.com/jossmac/react-select-simple-value
react-select
Last synced: 9 months ago
JSON representation
A simple value wrapper for react-select
- Host: GitHub
- URL: https://github.com/jossmac/react-select-simple-value
- Owner: jossmac
- License: mit
- Created: 2018-09-19T03:33:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-20T07:21:17.000Z (over 7 years ago)
- Last Synced: 2025-05-07T10:14:32.345Z (9 months ago)
- Topics: react-select
- Language: JavaScript
- Size: 73.2 KB
- Stars: 12
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-select-simple-value
A simple value wrapper for [react-select](https://github.com/JedWatson/react-select).
### Install
```bash
yarn add react-select-simple-value
```
### Use
```jsx
import ReactSelect from 'react-select';
import SimpleValue from 'react-select-simple-value';
export const MySelect = ({ options, value, ...props }) => (
{simpleProps => }
);
/* elsewhere in your application */
class extends React.Component {
render() {
return (
);
}
}
```
### 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