shinokada / svelte-heros-v2

Hero Icons v2 for Svelte. You can select outline and solid icons using the variation props. Svlete-Heros support major CSS framework. You can add additional CSS using the `class` props.
https://svelte-heros-v2.codewithshin.com
Apache License 2.0
41 stars 3 forks source link

[FEAT]: pass down svg attributes? #12

Closed wrabit closed 1 year ago

wrabit commented 1 year ago

Description

Can we pass svg attributes? i.e. stroke-width="2"?

Additional Information

No response

shinokada commented 1 year ago

Yes, I just updated and you can use the strokeWidth prop to change it. Please update to svelte-heros-v2@0.3.17.

REPL

image

Is this what you want?

wrabit commented 1 year ago

Looks good! thank you