You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/api/svg-icon.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,10 @@ import SvgIcon from '@material-ui/core/SvgIcon';
20
20
|:-----|:-----|:--------|:------------|
21
21
| <spanclass="prop-name required">children *</span> | <spanclass="prop-type">node</span> || Node passed into the SVG element. |
22
22
| <spanclass="prop-name">classes</span> | <spanclass="prop-type">object</span> || Override or extend the styles applied to the component. See [CSS API](#css) below for more details. |
23
-
| <spanclass="prop-name">color</span> | <spanclass="prop-type">enum: 'inherit', 'primary', 'secondary', 'action', 'error', 'disabled'<br></span> | <spanclass="prop-default">'inherit'</span> | The color of the component. It supports those theme colors that make sense for this component. You can use the `nativeColor` property to apply a color attribute to the SVG element. |
23
+
| <spanclass="prop-name">color</span> | <spanclass="prop-type">enum: 'inherit', 'primary', 'secondary', 'action', 'error', 'disabled'<br></span> | <spanclass="prop-default">'inherit'</span> | The color of the component. It supports those theme colors that make sense for this component. You can use the `htmlColor` property to apply a color attribute to the SVG element. |
24
24
| <spanclass="prop-name">component</span> | <spanclass="prop-type">elementType</span> | <spanclass="prop-default">'svg'</span> | The component used for the root node. Either a string to use a DOM element or a component. |
25
25
| <spanclass="prop-name">fontSize</span> | <spanclass="prop-type">enum: 'inherit' |<br> 'default' |<br> 'small' |<br> 'large'<br></span> | <spanclass="prop-default">'default'</span> | The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size. |
26
-
| <spanclass="prop-name">nativeColor</span> | <spanclass="prop-type">string</span> || Applies a color attribute to the SVG element. |
26
+
| <spanclass="prop-name">htmlColor</span> | <spanclass="prop-type">string</span> || Applies a color attribute to the SVG element. |
27
27
| <spanclass="prop-name">shapeRendering</span> | <spanclass="prop-type">string</span> || The shape-rendering attribute. The behavior of the different options is described on the [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering). If you are having issues with blurry icons you should investigate this property. |
28
28
| <spanclass="prop-name">titleAccess</span> | <spanclass="prop-type">string</span> || Provides a human-readable title for the element that contains it. https://www.w3.org/TR/SVG-access/#Equivalent|
29
29
| <spanclass="prop-name">viewBox</span> | <spanclass="prop-type">string</span> | <spanclass="prop-default">'0 0 24 24'</span> | Allows you to redefine what the coordinates without units mean inside an SVG element. For example, if the SVG element is 500 (width) by 200 (height), and you pass viewBox="0 0 50 20", this means that the coordinates inside the SVG will go from the top left corner (0,0) to bottom right (50,20) and each unit will be worth 10px. |
0 commit comments