Closed adamjgriffith closed 3 years ago
Unfortunately not through this library. Icons will need to be optimized to allow for that CSS property. We don't dictate how SVG icons are built. If there's a specific icon library you'd like to use this with, consider asking the authors of the library to provide support for it.
Ok thank you, I will consider opening a similar issue on the heroicons GitHub.
EDIT:
Turns out there are already a couple of issues related to this: https://github.com/tailwindlabs/heroicons/issues/241
@adamjgriffith You can override or change the SVG stroke width CSS
/*
resources/css/app.css
*/
svg path {
@apply stroke-1;
}
Is there a way to control the stroke-width property using this library?
I have tried something like
<x-heroicon-o-exclamation-circle class="h-12 w-12 stroke-1" />
but I cannot get it to work!Links: General: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-width Tailwind: https://tailwindcss.com/docs/stroke-width