-
I have a basic component like this:
That I would like to use like this:
And have
And then update the code like so
But that didn't change anything. How do I get the sizing resolution to work? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @SankarMS! 👋 Tailwind CSS doesn't support T-shirt sizes for min-width classes out of the box. In case you added those sizes to your const customTwMerge = extendTailwindMerge({
classGroups: {
'min-w': [{ 'min-w': ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl'] }],
},
})
// or
const customTwMerge = extendTailwindMerge({
classGroups: {
'min-w': [{ 'min-w': [validators.isTshirtSize] }],
},
}) Hope that helps 😊 |
Beta Was this translation helpful? Give feedback.
Hey @SankarMS! 👋
Tailwind CSS doesn't support T-shirt sizes for min-width classes out of the box. In case you added those sizes to your
tailwind.config.js
, then you can add them to tailwind-merge by adding them to themin-w
class group like this:Hope that helps 😊