Styling child components with css modules with React Select

Viewed 796

Basically, I have this:

import Select, { components } from 'react-select';
import classnames from 'classnames/bind';
const cx = classnames.bind(styles);
<Select
className={cx('selectthis')}
classNamePrefix={cx('one')}
options={options}
></Select>

The container works perfect. But how would I use my classes with the prefix correctly, I don't want to override every single component and add my own classes. Also I don't want to use the style prop.

How do I configure this?

Thanks

0 Answers
Related