I am trying to display an icon in a lightning component using LDS. I setup the svg helper, component, and renderer as per the LDS docs here. I also have a static resource stored in SalesForce. I am trying to reference it like this:
<c:svgIcon svgPath="/resource/sldsRight.png" category="standard" size="small" />
However, the icon does not appear. Is my path wrong, or do I have the wrong file type?
Best Answer
for icons I would recommend using standard salesforce provided components instead:
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_icon.htm
linked to the icons in that doc -
https://lightningdesignsystem.com/icons/