Closed Jacobtims closed 1 year ago
Hey! Yep right now we don't expose a prop for stroke-width
. If you'd like to change the stroke width you can do so with CSS:
import { PlusIcon } from '@heroicons/vue/24/solid';
<PlusIcon class="h-5 w-5 stroke-2"/>
Hope that helps! Going to close as not a bug (this would be a new feature) and no plans to work on this at the moment.
The stroke-2
class doesn't work on the component.
for me it is not working neither. Even using the given example with PlusIcon
and !stroke-2
or !stroke-[8]|stroke-[8]
.
stroke-[4px]
or any amount for that matter will work just fine. So:
<PlusIcon class="h-5 w-5 stroke-[2px]"/>
Discussed in https://github.com/tailwindlabs/heroicons/discussions/946
It's not possible to change the stroke-width of an icon when using the Vue.js package.