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/typography.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -21,13 +21,13 @@ import Typography from '@material-ui/core/Typography';
21
21
| <spanclass="prop-name">align</span> | <spanclass="prop-type">enum: 'inherit', 'left', 'center', 'right', 'justify'<br></span> | <spanclass="prop-default">'inherit'</span> | Set the text-align on the component. |
22
22
| <spanclass="prop-name">children</span> | <spanclass="prop-type">node</span> || The content of the component. |
23
23
| <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. |
24
-
| <spanclass="prop-name">color</span> | <spanclass="prop-type">enum: 'default', 'error', 'inherit', 'primary', 'secondary', 'textPrimary', 'textSecondary'<br></span> | <spanclass="prop-default">'default'</span> | The color of the component. It supports those theme colors that make sense for this component. |
24
+
| <spanclass="prop-name">color</span> | <spanclass="prop-type">enum: 'initial', 'inherit', 'primary', 'secondary', 'textPrimary', 'textSecondary', 'error'<br></span> | <spanclass="prop-default">'initial'</span> | The color of the component. It supports those theme colors that make sense for this component. |
25
25
| <spanclass="prop-name">component</span> | <spanclass="prop-type">elementType</span> || The component used for the root node. Either a string to use a DOM element or a component. By default, it maps the variant to a good default headline component. |
26
26
| <spanclass="prop-name">display</span> | <spanclass="prop-type">enum: 'initial' |<br> 'block' |<br> 'inline'<br></span> | <spanclass="prop-default">'initial'</span> | Controls the display type |
27
27
| <spanclass="prop-name">gutterBottom</span> | <spanclass="prop-type">bool</span> | <spanclass="prop-default">false</span> | If `true`, the text will have a bottom margin. |
28
28
| <spanclass="prop-name">noWrap</span> | <spanclass="prop-type">bool</span> | <spanclass="prop-default">false</span> | If `true`, the text will not wrap, but instead will truncate with an ellipsis. |
29
29
| <spanclass="prop-name">paragraph</span> | <spanclass="prop-type">bool</span> | <spanclass="prop-default">false</span> | If `true`, the text will have a bottom margin. |
| <spanclass="prop-name">variantMapping</span> | <spanclass="prop-type">object</span> | <spanclass="prop-default">{ h1: 'h1', h2: 'h2', h3: 'h3', h4: 'h4', h5: 'h5', h6: 'h6', subtitle1: 'h6', subtitle2: 'h6', body1: 'p', body2: 'p',}</span> | We are empirically mapping the variant property to a range of different DOM element types. For instance, subtitle1 to `<h6>`. If you wish to change that mapping, you can provide your own. Alternatively, you can use the `component` property. |
32
32
33
33
Any other properties supplied will be spread to the root element (native element).
0 commit comments