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

8.0.0 • Public • Published

@svgr/babel-plugin-add-jsx-attribute

Install

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

Usage

.babelrc

{
  "plugins": [
    [
      "@svgr/babel-plugin-add-jsx-attribute",
      {
        "elements": ["svg"],
        "attributes": [
          {
            "name": "width",
            "value": "200",
            "spread": false,
            "literal": false,
            "position": "end"
          }
        ]
      }
    ]
  ]
}

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @svgr/babel-plugin-add-jsx-attribute

Weekly Downloads

7,592,626

Version

8.0.0

License

MIT

Unpacked Size

13.5 kB

Total Files

8

Last publish

Collaborators

  • neoziro