Typography
The Typography component allows the placement of text elements within a page or other components.
Properties
Name | Type | Default | Description |
---|---|---|---|
text | string | Defines the text to display. | |
paragraph | bool | false | If true, the element will be a paragraph element. |
Style Attributes
Name | Type | Default | Description |
---|---|---|---|
variant | h1 h2 h3 h4 h5 h6 subtitle1 subtitle2 body1 body2 caption button overline inherit string | inherit | Defines the type of typography to display. |
align | inherit left center justify string | inherit | Specifies the text alignment. |
color | initial inherit primary secondary textPrimary textSecondary error string | inherit | Defines the color of the typography. |
noWrap | bool | false | If true, the text will be truncated and display a text overflow ellipsis. |
gutterBottom | bool | false | Enables a gutter at the bottom of the typography component. |
For more detail on the Typography component, see the MUI developer docs.