4

According to this page on the Lightning Design System, the unmanaged package has been deprecated due to SLDS being available in Salesforce without need for a static resource. However, I'm having trouble grabbing SLDS icons for use in lightning components still.

Are the SLDS icons available without the need for a static resource? If so, what's the path I should use for the SVG?

3

They are not natively available in lightning. You will need to get a static resource. There is a great explanation on why and the component workaround that you can use until it is supported.

Lightning SVG Component Helper

Since posting, lightning components can now extend SLDS by using the force:slds markup.

force:slds tag release notes

Lightning Icons can then be used by using the lightning:icon markup:

lightning:icon

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.