Provide Create LWC SVG context action

Issue #2133 resolved
Adam Stepanek created an issue

Hi Scott, pls would you be able to add ‘Lightning Web Components SVG’ context action? We have this thing for aura context, but it is missing for lwc. Right now, I have to create a blank file and properly name it.

Comments (6)

  1. Scott Wells repo owner

    Hi, Adam. The reason I haven't done this so far--and this is perhaps my own ignorance--is that I thought there wasn't a first-class SVG file type for LWC like there is for Aura. My understanding was that you either created another HTML template or you referenced SVG in a static resource, e.g.:

    https://developer.salesforce.com/docs/component-library/documentation/en/lwc/use_svg_in_component

    If that's an incorrect assumption, though, can you please provide a pointer to the docs for how SVG files are included in LWC bundles in a more first-class manner? Thanks!

  2. Log in to comment