UNPKG

505 BMarkdownView Raw
1# @svgr/babel-plugin-add-jsx-attribute
2
3## Install
4
5```
6npm install --save-dev @svgr/babel-plugin-add-jsx-attribute
7```
8
9## Usage
10
11**.babelrc**
12
13```json
14{
15 "plugins": [
16 [
17 "@svgr/babel-plugin-add-jsx-attribute",
18 {
19 "elements": ["svg"],
20 "attributes": [
21 {
22 "name": "width",
23 "value": "200",
24 "spread": false,
25 "literal": false,
26 "position": "end"
27 }
28 ]
29 }
30 ]
31 ]
32}
33```
34
35## License
36
37MIT