haruaki07 / phosphor-svelte

A clean and friendly icon family for Svelte
MIT License
120 stars 7 forks source link

Add class property #7

Closed benjineering closed 1 year ago

benjineering commented 1 year ago

Please consider allowing to pass through the class without needing to add superfluous containing elements.

This would be helpful for those of us using Tailwind CSS for example.

haruaki07 commented 1 year ago

Thank you, I apologize for the delayed response. Actually, it is already works ($$restProps did), you can pass class property to the icon component or IconContext value. Perhaps it was just missing in the prop type definition.

It will be fixed in the next release, I will close this instead.