Skip to content

Typography API

API reference docs for the React Typography component. Learn about the props, CSS, and other APIs of this exported module.

Demos

For examples and details on the usage of this React component, visit the component demo pages:

Import

import Typography from '@mui/joy/Typography';
// or
import { Typography } from '@mui/joy';
Learn about the difference by reading this guide on minimizing bundle size.

Props

Props of the native component are also available.

children

color

component

endDecorator

gutterBottom

level

levelMapping

noWrap

slotProps

slots

startDecorator

sx

textColor

variant

As a CSS utility, the Typography component also supports all system properties. You can use them as props directly on the component.

The ref is forwarded to the root element.

Theme default props

You can use JoyTypography to change the default props of this component with the theme.


Slots

To learn how to customize the slot, check out the Overriding component structure guide.

root

startDecorator

endDecorator

CSS classes

These class names are useful for styling with CSS. They are applied to the root slot when specific states are triggered.

.MuiTypography-body-lg

.MuiTypography-body-md

.MuiTypography-body-sm

.MuiTypography-body-xs

.MuiTypography-colorContext

.MuiTypography-colorDanger

.MuiTypography-colorNeutral

.MuiTypography-colorPrimary

.MuiTypography-colorSuccess

.MuiTypography-colorWarning

.MuiTypography-gutterBottom

.MuiTypography-h1

.MuiTypography-h2

.MuiTypography-h3

.MuiTypography-h4

.MuiTypography-noWrap

.MuiTypography-title-lg

.MuiTypography-title-md

.MuiTypography-title-sm

.MuiTypography-variantOutlined

.MuiTypography-variantPlain

.MuiTypography-variantSoft

.MuiTypography-variantSolid