@svgr/babel-plugin-replace-jsx-attribute-value

  • Version 6.5.1
  • Published
  • 7.04 kB
  • No dependencies
  • MIT license

Install

npm i @svgr/babel-plugin-replace-jsx-attribute-value
yarn add @svgr/babel-plugin-replace-jsx-attribute-value
pnpm add @svgr/babel-plugin-replace-jsx-attribute-value

Overview

Replace JSX attribute value

Index

Functions

function addJSXAttribute

addJSXAttribute: (
api: ConfigAPI,
opts: Options
) => { visitor: { JSXAttribute(path: NodePath<types.JSXAttribute>): void } };

    Interfaces

    interface Options

    interface Options {}

      property values

      values: Value[];

        interface Value

        interface Value {}

          property literal

          literal?: boolean;

            property newValue

            newValue: string | boolean | number;

              property value

              value: string;

                Package Files (1)

                Dependencies (0)

                No dependencies.

                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-plugin-replace-jsx-attribute-value.

                • Markdown
                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@svgr/babel-plugin-replace-jsx-attribute-value)
                • HTML
                  <a href="https://www.jsdocs.io/package/@svgr/babel-plugin-replace-jsx-attribute-value"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>