Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99062

Preview SVG inside JavaScript in VSCode

$
0
0

Is it possible to preview SVG inside JavaScript in VSCode?

There are plugins that can preview SVG files in VSCode, but what if they're inside JavaScript or React components? Or if there's a list of compound paths in an object.

There are also tools like Storybook but what if you just want to quickly preview some SVGs? If they're inside JS they're probably dynamic (take props like fill, color, etc), but could I then just preview them with the defaults (if provided), or a simple way to provide them props?

Any VSCode plugin that does that? How do people tackle this?


Viewing all articles
Browse latest Browse all 99062

Latest Images

Trending Articles

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>