Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

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

gregberge38.8mMIT8.0.0TypeScript support: included

Add JSX attribute

babel-plugin

readme

@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

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

8.0.0 (2023-05-09)

Note: Version bump only for package @svgr/babel-plugin-add-jsx-attribute

7.0.0 (2023-03-24)

Note: Version bump only for package @svgr/babel-plugin-add-jsx-attribute

6.5.1 (2022-10-27)

Note: Version bump only for package @svgr/babel-plugin-add-jsx-attribute

6.5.0 (2022-10-14)

Note: Version bump only for package @svgr/babel-plugin-add-jsx-attribute

6.3.1 (2022-07-22)

Bug Fixes

6.3.0 (2022-07-18)

Bug Fixes

5.4.0 (2020-04-27)

Note: Version bump only for package @svgr/babel-plugin-add-jsx-attribute

5.0.1 (2019-12-29)

Bug Fixes

  • fix engines in package.json (a45d6fc)

4.2.0 (2019-04-11)

Note: Version bump only for package @svgr/babel-plugin-add-jsx-attribute

4.0.0 (2018-11-04)

Features

BREAKING CHANGES

  • v4: - template option must now returns a Babel AST

  • @svgr/core does not include svgo & prettier by default