Is it possible to use a custom SVG icon in a lightning card component:

<lightning:card title="My card" iconName="custom_svg_here">

I have set a custom SVG icon for the custom lightning component, by adding the SVG code into the .svg file.

But I don't know how to reference it in the lightning card component iconName property.

Your Answer

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

Browse other questions tagged or ask your own question.