Repository navigation
Replies: 2 comments
|
Not sure if I understand your problem correctly (especially this part with mergeTwClasses) cva([], {
variants: {
size: {
medium: ["text-base"],
},
iconLeading: {
true: [],
false: []
}
},
compoundVariants: [
{ size: "medium", iconLeading: false, class: ['px-3'] },
{ size: "medium", iconLeading: true, class: ['pl-10', 'pr-3'] }
],
defaultVariants: {
size: "medium",
iconLeading: false,
},
});element without icon class = text-base px-3 |
0 replies
|
In |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am trying to create a
mediuminput but wheniconLeadingistrueI would like the padding to end up like thispr-3 pl-10.I am using
tailwind-mergeto wrap mycraftInputcall to make it tailwind aware. However, this is not working. What is my best route here?PS It is working if I do it the traditional way:
but would like it to end up like this eventually:
All reactions