@svgr/babel-preset

  • Version 8.1.0
  • Published
  • 14.1 kB
  • 8 dependencies
  • MIT license

Install

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

Overview

SVGR preset that apply transformations from config

Index

Functions

function plugin

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

    Interfaces

    interface Options

    interface Options extends Options$1 {}

      property descProp

      descProp?: boolean;

        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)

                        Badge

                        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
                          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@svgr/babel-preset)
                        • 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>