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 |
Beta Was this translation helpful? Give feedback.
0 replies
-
In |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to create a
medium
input but wheniconLeading
istrue
I would like the padding to end up like thispr-3 pl-10
.I am using
tailwind-merge
to wrap mycraftInput
call 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:
Beta Was this translation helpful? Give feedback.
All reactions