[SalesForce] How to use custom svg icons in a lightning component

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

Best Answer

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