Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
195 lines
6.7 KiB
JSON
195 lines
6.7 KiB
JSON
{
|
|
"props": {
|
|
"align": {
|
|
"type": {
|
|
"name": "enum",
|
|
"description": "'center'<br>| 'inherit'<br>| 'justify'<br>| 'left'<br>| 'right'"
|
|
},
|
|
"default": "'inherit'"
|
|
},
|
|
"children": { "type": { "name": "node" } },
|
|
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
|
|
"color": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'primary'<br>| 'secondary'<br>| 'success'<br>| 'error'<br>| 'info'<br>| 'warning'<br>| 'textPrimary'<br>| 'textSecondary'<br>| 'textDisabled'<br>| string"
|
|
}
|
|
},
|
|
"component": { "type": { "name": "elementType" } },
|
|
"gutterBottom": { "type": { "name": "bool" }, "default": "false" },
|
|
"noWrap": { "type": { "name": "bool" }, "default": "false" },
|
|
"paragraph": {
|
|
"type": { "name": "bool" },
|
|
"default": "false",
|
|
"deprecated": true,
|
|
"deprecationInfo": "Use the <code>component</code> prop instead. This prop will be removed in a future major release. See <a href=\"https://mui.com/material-ui/migration/migrating-from-deprecated-apis/\">Migrating from deprecated APIs</a> for more details."
|
|
},
|
|
"sx": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object"
|
|
},
|
|
"additionalInfo": { "sx": true }
|
|
},
|
|
"variant": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'body1'<br>| 'body2'<br>| 'button'<br>| 'caption'<br>| 'h1'<br>| 'h2'<br>| 'h3'<br>| 'h4'<br>| 'h5'<br>| 'h6'<br>| 'inherit'<br>| 'overline'<br>| 'subtitle1'<br>| 'subtitle2'<br>| string"
|
|
},
|
|
"default": "'body1'"
|
|
},
|
|
"variantMapping": {
|
|
"type": { "name": "object" },
|
|
"default": "{\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n h6: 'h6',\n subtitle1: 'h6',\n subtitle2: 'h6',\n body1: 'p',\n body2: 'p',\n inherit: 'p',\n}"
|
|
}
|
|
},
|
|
"name": "Typography",
|
|
"imports": [
|
|
"import Typography from '@mui/material/Typography';",
|
|
"import { Typography } from '@mui/material';"
|
|
],
|
|
"classes": [
|
|
{
|
|
"key": "alignCenter",
|
|
"className": "MuiTypography-alignCenter",
|
|
"description": "Styles applied to the root element if `align=\"center\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "alignJustify",
|
|
"className": "MuiTypography-alignJustify",
|
|
"description": "Styles applied to the root element if `align=\"justify\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "alignLeft",
|
|
"className": "MuiTypography-alignLeft",
|
|
"description": "Styles applied to the root element if `align=\"left\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "alignRight",
|
|
"className": "MuiTypography-alignRight",
|
|
"description": "Styles applied to the root element if `align=\"right\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "body1",
|
|
"className": "MuiTypography-body1",
|
|
"description": "Styles applied to the root element if `variant=\"body1\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "body2",
|
|
"className": "MuiTypography-body2",
|
|
"description": "Styles applied to the root element if `variant=\"body2\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "button",
|
|
"className": "MuiTypography-button",
|
|
"description": "Styles applied to the root element if `variant=\"button\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "caption",
|
|
"className": "MuiTypography-caption",
|
|
"description": "Styles applied to the root element if `variant=\"caption\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "gutterBottom",
|
|
"className": "MuiTypography-gutterBottom",
|
|
"description": "Styles applied to the root element if `gutterBottom={true}`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "h1",
|
|
"className": "MuiTypography-h1",
|
|
"description": "Styles applied to the root element if `variant=\"h1\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "h2",
|
|
"className": "MuiTypography-h2",
|
|
"description": "Styles applied to the root element if `variant=\"h2\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "h3",
|
|
"className": "MuiTypography-h3",
|
|
"description": "Styles applied to the root element if `variant=\"h3\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "h4",
|
|
"className": "MuiTypography-h4",
|
|
"description": "Styles applied to the root element if `variant=\"h4\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "h5",
|
|
"className": "MuiTypography-h5",
|
|
"description": "Styles applied to the root element if `variant=\"h5\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "h6",
|
|
"className": "MuiTypography-h6",
|
|
"description": "Styles applied to the root element if `variant=\"h6\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "inherit",
|
|
"className": "MuiTypography-inherit",
|
|
"description": "Styles applied to the root element if `variant=\"inherit\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "noWrap",
|
|
"className": "MuiTypography-noWrap",
|
|
"description": "Styles applied to the root element if `nowrap={true}`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "overline",
|
|
"className": "MuiTypography-overline",
|
|
"description": "Styles applied to the root element if `variant=\"overline\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "paragraph",
|
|
"className": "MuiTypography-paragraph",
|
|
"description": "Styles applied to the root element if `paragraph={true}`.",
|
|
"isGlobal": false,
|
|
"isDeprecated": true
|
|
},
|
|
{
|
|
"key": "root",
|
|
"className": "MuiTypography-root",
|
|
"description": "Styles applied to the root element.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "subtitle1",
|
|
"className": "MuiTypography-subtitle1",
|
|
"description": "Styles applied to the root element if `variant=\"subtitle1\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "subtitle2",
|
|
"className": "MuiTypography-subtitle2",
|
|
"description": "Styles applied to the root element if `variant=\"subtitle2\"`.",
|
|
"isGlobal": false
|
|
}
|
|
],
|
|
"spread": true,
|
|
"themeDefaultProps": true,
|
|
"muiName": "MuiTypography",
|
|
"forwardsRefTo": "HTMLParagraphElement",
|
|
"filename": "/packages/mui-material/src/Typography/Typography.js",
|
|
"inheritance": null,
|
|
"demos": "<ul><li><a href=\"/material-ui/react-breadcrumbs/\">Breadcrumbs</a></li>\n<li><a href=\"/material-ui/react-typography/\">Typography</a></li></ul>",
|
|
"cssComponent": true
|
|
}
|