π¦ plugin-svgr
An SVGR plugin to transform SVG files into React components automatically at build time.
Installation
Section titled βInstallationβnpm install --save @docusaurus/plugin-svgrConfiguration
Section titled βConfigurationβAccepted fields:
<APITable>| Name | Type | Default | Description |
|---|---|---|---|
svgrConfig |
object |
{} |
The SVGR config options, forwarded as is |
</APITable>Example configuration
Section titled βExample configurationβYou can configure this plugin through plugin options.
// Preset Options: svgr
// Plugin Options: @docusaurus/plugin-svgr
const config = {
svgrConfig: {
/* SVGR config */
},
};