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
Will it be possible to add additional functionality to TWM so that's it's able to get the current class assigned given a property name? As well as remove a specific class set?
The text was updated successfully, but these errors were encountered:
Basically, TWM can tell the difference between arbitrary classes. It would be useful if TWM instead of merging, only returns the class applied, given a string representing the class set. For example ('w') -> returns the class included that matches the 'w' set. So if 'w-full' is applied, return that class rather than merge 'w', causing it to remove 'w-full'
Ah got it. I see how that could be useful. Currently I don't have the capacity to increase the API surface of tailwind-merge, so I won't be able to build this anytime soon.
But the library is not too large, feel free to fork it and build this feature yourself. 😊
Will it be possible to add additional functionality to TWM so that's it's able to get the current class assigned given a property name? As well as remove a specific class set?
The text was updated successfully, but these errors were encountered: