function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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