We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b3f36b2 + 9603b07 commit f8ad442Copy full SHA for f8ad442
.svgrrc.js
@@ -14,6 +14,15 @@ module.exports = {
14
attributes: ['xmlns', 'className'],
15
},
16
],
17
+ // default is 1em - replace it to 24
18
+ [
19
+ "@svgr/babel-plugin-replace-jsx-attribute-value",
20
+ {
21
+ "values": [
22
+ { "value": "1em", "newValue": 24 },
23
+ ]
24
+ }
25
26
27
28
package.json
@@ -35,6 +35,7 @@
35
"devDependencies": {
36
"@microsoft/api-extractor": "^7.16.1",
37
"@svgr/babel-plugin-remove-jsx-attribute": "^5.4.0",
38
+ "@svgr/babel-plugin-replace-jsx-attribute-value": "^5.0.1",
39
"@svgr/cli": "^5.5.0",
40
"@types/react": "^17.0.11",
41
"feather-icons": "^4.28.0",
0 commit comments