+ Start a Discussion
Rahul Singh 1384Rahul Singh 1384 

How to create SVG Icons Static Resource?

I want to use SVG Icons in my lightning component. Can anyone help me on how to create static resource of SVG Icons,
I can upload static resource and set path accordingly, I only want to know the steps included in creating SVG Icons Static Resource.

Any help would be appreciated.
Thanks In Advance
Rahul

NagendraNagendra (Salesforce Developers) 
Hi Rahul,

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

Also, please check with below trailhead module for further reference. Please let us know if this helps.

Kindly mark this as solved if it;s resolved.

Thanks,
Nagendra