-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.svgrrc
16 lines (16 loc) · 859 Bytes
/
.svgrrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Documentation https://react-svgr.com/docs/options/
babel: false
expandedProps: 'end' # All properties given to component will be forwarded on SVG tag. Possible values: "start", "end" or false.
icon: true # Replace SVG "width" and "height" value by "1em" in order to make SVG size inherits from text size.
titleProp: true # Add title tag via title property. If titleProp is set to true and no title is provided (title={undefined}) at render time, this will fallback to existing title element in the svg if exists.
svgProps:
'aria-hidden': 'true'
focusable: false
role: 'img'
# Specify SVGO config. See SVGO options: https://github.com/svg/svgo
svgoConfig:
removeAttributesBySelector:
selector: "[style*='mix-blend-mode']"
attributes: 'style'
removeXMLNS: true
removeTitle: true # Remove embedded title in the svg, not the one we pass in.