I want to add RTL support to react-component libraries and for the first step I choose select component.
what is your preferred solution for this.
using a global css like
body[dir="rtl"] .rc-select {
/*right to left styles here*/
}
or passing some property like isRTL to component from jsx
<Select isRTL={true} ...>
...
</Select>
and change the css class to something is optimized for RTL language
I want to add
RTL
support to react-component libraries and for the first step I chooseselect
component. what is your preferred solution for this. using a global css likeor passing some property like
isRTL
to component from jsxand change the css class to something is optimized for
RTL
language