You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently this produces class="text-2xs text-2xl" which is wrong. It needs to be class="text-2xl".
This syntax should work:
functionComponent(){return(<TextContext.Providervalue={{className: 'text-2xs'}}><Text// `state.defaultClassName` received the merged context: 'text-2xs'className={(state)=>twMerge(state.defaultClassName,'text-2xl')}>Shouldbe2xl</Text></TextContext.Provider>)}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently there is no way to customize how the
className
s are merged.This mean
tailwindcss
classes can't be merged correctly.Currently this produces
class="text-2xs text-2xl"
which is wrong. It needs to beclass="text-2xl"
.This syntax should work:
Beta Was this translation helpful? Give feedback.
All reactions