2

I have svg icons uploaded as static resource. How can I use these icons in a lightning component?

1

You can use SFDC svgIcon component https://www.lightningdesignsystem.com/resources/lightning-svg-icon-component-helper/

There may be some adaptation if u don't use SLDS svgs but it should do the job :)

  • 3
    Link is broken. I don't think this method is supported in lightning anymore – Scott Morrison Nov 30 '17 at 20:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.