Usage
Markdown Page
Within a Markdown page, you can use the Svg component to:
- optimize
- and include your svg in your document
The src attribute indicates the relative path to the file in the images directory.
Output example:
Programmatic Page
In a programmatic page, importing a svg will return an optimized React Svg Component
Example:
Optimization
The svg are optimized with the svgo preset