← Back
SVG
This component will display an SVG file inline using https://github.com/matthewwithanm/react-inlinesvg. This makes it easy to style the SVG with css, as opposed to displaying the svg inside of an image tag.
Input:
[SVG src:"static/images/logo-text.svg" /]
Output:
Props
- src
string
- Example:
"https://upload.wikimedia.org/wikipedia/commons/f/fd/Ghostscript_Tiger.svg"
- Example: