@svgr/babel-plugin-replace-jsx-attribute-value
TypeScript icon, indicating that this package has built-in type declarations

8.0.0 • Public • Published

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

Install

npm install --save-dev @svgr/babel-plugin-replace-jsx-attribute-value

Usage

.babelrc

{
  "plugins": [
    [
      "@svgr/babel-plugin-replace-jsx-attribute-value",
      {
        "values": [
          { "value": "#000", "newValue": "#fff" },
          { "value": "blue", "newValue": "props.color", "literal": true }
        ]
      }
    ]
  ]
}

License

MIT

Versions

Current Tags

Version History

Package Sidebar

Install

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

Weekly Downloads

7,803,437

Version

8.0.0

License

MIT

Unpacked Size

7.04 kB

Total Files

6

Last publish

Collaborators

  • neoziro