Closed fgeck closed 1 year ago
I think you want things like this https://tailwindcss.com/docs/fill ? I'm not super familiar with tailwind though.
(take that with a grain of salt as I am neither a vue nor a tailwind expert)
What you do with tailwindcss is to style your html components via classes. The whole css magic is done by tailwind. That means only if the html component that should be styled has the classes, it will be styled.
I guess what you pointed out in the doc won't work as the "inherited classes" (or classes that are passed into the vue component) are only passed to the <span>
but not to the <svg>
element as we can see in my initial issue.
Ah I see what you mean. I think in tailwind you'd want something like @apply
on the material-design-icon__svg
for global styles on the icons, or .chevron-left-icon > .material-design-icon__svg
for specific ones. I haven't done CSS in a long while though, not sure if my specific example is correct.
Closing as there has been no further comments / discussion
Hi,
I am using Vue + TailwindCSS and I want to style a mdi component. How can I pass additional values to the components class to use TailwindCSS to style the mdi component?
Example:
Rendered in the browser:
Am I doing something wrong or is that not possible at all?