The plugin runs all imported SVG files through svgo. For index.html, you can use the following syntax: ```html <use svg="file.svg" size="24" /> ``` For scripts, use the `?svg` import query ```javascript import SVG_FILE from './file.svg?svg&size=24 ``` Note: size is shorthand for specifying both width and height individually. You can also set any property of the base SVG element. You can also use the `?svg&icon` query to return a function that allows dynamically resizing the SVG string.
4 lines
No EOL
247 B
XML
4 lines
No EOL
247 B
XML
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" style="opacity: 0.7;">
|
|
<path d="M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12z" />
|
|
<path d="M6.3 6.3h11.4v11.4H6.3z" fill="var(--card)" />
|
|
</svg> |