@svgr/babel-plugin-add-jsx-attribute
Add JSX attribute
Last updated 3 years ago by neoziro .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install @svgr/babel-plugin-add-jsx-attribute 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 7.0.0                                ...           latest (2 years ago)
  • 6.0.0-alpha.1                                ...           next (3 years ago)

12 Versions

  • 7.0.0                                ...           2 years ago
  • 6.5.1                                ...           2 years ago
  • 6.5.0                                ...           2 years ago
  • 6.3.1                                ...           2 years ago
  • 6.3.0                                ...           2 years ago
  • 6.0.0                                ...           3 years ago
  • 6.0.0-alpha.1                                ...           3 years ago
  • 5.4.0                                ...           5 years ago
  • 5.0.1                                ...           5 years ago
  • 5.0.0                                ...           5 years ago
  • 4.2.0                                ...           6 years ago
  • 4.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |