How to render an SVG?
To render a SVG, you can:
- use one of the following components in a markdown page:
- import a svg file in a programmatic page
Options
Optimization
The svg are optimized with the svgo preset
Import
On file import, the SVG are transformed as React Component with SvgR
Example:
- With the below import statement, OpenAiIcon is a React component optimized
- or from a file