SVG Image
Draws an svg file straight into the page instead of as a picture, so its lines take the text colour and the stroke width you give it, in a 24px square unless size sets another.
Usage
Examples
Sizes
size is its width and height in pixels, as an Icon's is, 24 by default.
Markup
src takes the svg's markup as well as a url, so a drawing stored as text needs no request.
Stroke width
strokeWidth rewrites every stroke-width in the svg's markup, 1.5 by default.
Fallback
Its children stand in when there is nothing to draw: no src, a file that fails to load, or a browser that can't draw inline svg.
API Reference
SvgImage
SvgImageProps ยท components/SvgImage/SvgImage.types.tsIt also takes the props of <span>.