Helper to inline SVG icons #1760
Unanswered
wout
asked this question in
Feature requests & Ideas
Replies: 1 comment
-
That looks pretty neat. I'm sure a lot of people these days use SVG Icons. I'd be cool with adding this as a helper. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In every one of my Lucky apps I use SVG icons that I style with CSS. They are inlined and sanitized at compile-time, and I use the following snippet:
What this does is:
src/icons
at compile-time (configurable with an annotation)data-svg-icon
attribute with the path of the icon for icon-specific styling (e.g.<svg data-svg-icon="social/twitter.svg">
)It feels silly to create a shard for this. Would It be an idea to include it in the core? I'd be happy to create a PR.
Beta Was this translation helpful? Give feedback.
All reactions