Components with SVGs #3038
-
Hi All, I'm making a Blade nav-item component (basically one of the TailwindUI examples.So far I have this (I've redacted most of the CSS to avoid stamping all over Adam's copyright):
I'm wondering what the best/most sensible approach to handle the SVGs is. I can obviously use a slot to inject the SVGs, however I want to avoid repeating the CSS. Would people generally recommend turning each SVG icon into its own component? Should I simply make the svg path element the slot and inject that instead? Any advice greatly appreciated! Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Check this package for icons in Blade: https://github.com/blade-ui-kit/blade-icons |
Beta Was this translation helpful? Give feedback.
Check this package for icons in Blade: https://github.com/blade-ui-kit/blade-icons