Skip to main content
Docusaurus

Search documentation

Type to search this documentation.

On this pageOverview

πŸ“¦ plugin-svgr

An SVGR plugin to transform SVG files into React components automatically at build time.

npm2yarn
npm install --save @docusaurus/plugin-svgr

Accepted fields:

mdx-code-block
<APITable>
Name Type Default Description
svgrConfig object {} The SVGR config options, forwarded as is
mdx-code-block
</APITable>

You can configure this plugin through plugin options.

config-tabs
// Preset Options: svgr
// Plugin Options: @docusaurus/plugin-svgr

const config = {
  svgrConfig: {
    /* SVGR config */
  },
};
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu