ReactSelectWrapper
Extends:
Component → BaseInput → ReactSelectWrapper
Wrapper for React Select
PropTypes
property | type | type signature | description |
---|---|---|---|
name |
string |
required | input name (you can use dots and array indexes) |
Component |
<Select> |
required | react select component |
label |
string |
input label | |
className |
string |
input class | |
controlClass |
string |
surrounding paragraph class | |
defaultValue |
any |
is used, when input value is falsey | |
value |
any |
use, when input is operated outside <Form> |
|
onChange |
function |
(value, input) => {} |
fired, when input is changed |
disabled |
boolean |
disable input | |
readOnly |
boolean |
only read | |
required |
boolean |
input is required - HTML attribute |
Example:
import Select from 'react-select';
<ReactSelectWrapper
name="someSelect"
Component={Select}
/>