in example : https://codesandbox.io/s/jz33xx66q9?module=/example.js
i want to rotate emoji to up size down when menu open
how to do that
react-select
provides a styling api which offers such customization. Each attribute in the object given to the styles
prop is a function which is getting the current component state as a prop. The state also has props from the base component (Select
).
<Select
{ ... }
styles={{
dropdownIndicator: (provided, state) => ({
...provided,
transform: state.selectProps.menuIsOpen && 'rotate(180deg)'
})
}}
/>
CodeSandbox example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With