2

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

1 Answer 1

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

1
  • 4
    Link is broken. I don't think this method is supported in lightning anymore Commented Nov 30, 2017 at 20:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .