@wfp/ui
Version:
WFP UI Kit
34 lines (26 loc) • 851 B
text/mdx
We recommend [React Select](https://react-select.com) for multiselect, autocomplete or ajax inputs.
To use the WFP UI styling add the following `className` and `classNamePrefix` props.
```js
<Select
className="wfp--react-select-container"
classNamePrefix="wfp--react-select"
/>
```
[](?path=/story/components-reduxformwrapper--select-react-final-form) for an example on using react-select inside the `<Field/>` component.
```js
<div className="wfp--form-item" style={{ minWidth: '400px' }}>
<label htmlFor="abc" className="wfp--label">
The Label
</label>
<ReactSelect
className="wfp--react-select-container"
classNamePrefix="wfp--react-select"
isMulti
id="abc"
options={options}
/>
</div>
```