@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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

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

      Weekly Downloads

      6,716,098

      Version

      8.0.0

      License

      MIT

      Unpacked Size

      7.04 kB

      Total Files

      6

      Last publish

      Collaborators

      • neoziro