• Version 6.2.0
  • Published
  • 13.1 kB
  • 8 dependencies
  • MIT license


npm i @svgr/babel-preset
yarn add @svgr/babel-preset
pnpm add @svgr/babel-preset


SVGR preset that apply transformations from config



function plugin

plugin: (_: ConfigAPI, opts: Options) => { plugins: any[] };


    interface Options

    interface Options extends Options$1 {}

      property dimensions

      dimensions?: boolean;

        property expandProps

        expandProps?: boolean | 'start' | 'end';

          property icon

          icon?: boolean | string | number;

            property native

            native?: boolean;

              property ref

              ref?: boolean;

                property replaceAttrValues

                replaceAttrValues?: {
                [key: string]: string;

                  property svgProps

                  svgProps?: {
                  [key: string]: string;

                    property titleProp

                    titleProp?: boolean;

                      Package Files (1)

                      Dependencies (8)

                      Dev Dependencies (0)

                      No dev dependencies.

                      Peer Dependencies (1)


                      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@svgr/babel-preset.

                      • Markdown
                      • HTML
                        <a href="https://www.jsdocs.io/package/@svgr/babel-preset"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>