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

1 Answer 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 :)

  • 4
    Link is broken. I don't think this method is supported in lightning anymore Nov 30, 2017 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.