Which three steps allow a custom Scalable Vector Graphic (SVG) to be included in a Lightning web component?
Choose 3 answers
Import the static resource and provide a JavaScript property for it.
Upload the SVG as a static resource.
Reference the import in the HTML template.
Import the SVG as a content asset file.
Reference the property in the HTML template.
Upload the SVG file as astatic resourcein Salesforce.
Import it in the LWC JavaScript file and define it as a property.
Reference the property in the component’s HTML template.
Example:
importmySvgfrom'@salesforce/resourceUrl/mySvg';
exportdefaultclassMyComponentextendsLightningElement{
svgUrl = mySvg;
}
Lightning Web Components Static Resources
Submit