// testing docs/src/pages/customization/typography/typography.md import { createTheme } from '@mui/material/styles'; import Typography from '@mui/material/Typography'; import * as React from 'react'; declare module '@mui/material/styles' { interface TypographyVariants { poster: React.CSSProperties; } // allow configuration using `createTheme` interface TypographyVariantsOptions { poster?: React.CSSProperties; } } // Update the Typography's variant prop options declare module '@mui/material/Typography' { interface TypographyPropsVariantOverrides { poster: true; h3: false; } } const theme = createTheme({ typography: { poster: { color: 'red', }, // Disable h3 variant h3: undefined, }, }); poster; /* This variant is no longer supported */ // @ts-expect-error h3;