From b2c4e92f06f88897a68317beebbbd84a9d44ac0b Mon Sep 17 00:00:00 2001 From: Lucas Melo Date: Wed, 22 May 2024 09:35:38 -0300 Subject: [PATCH] [material-ui][AlertTitle] Enable extending Typography props (#42269) Co-authored-by: ZeeshanTamboli --- packages/mui-material/src/AlertTitle/AlertTitle.d.ts | 4 ++-- packages/mui-material/src/AlertTitle/AlertTitle.spec.tsx | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 packages/mui-material/src/AlertTitle/AlertTitle.spec.tsx diff --git a/packages/mui-material/src/AlertTitle/AlertTitle.d.ts b/packages/mui-material/src/AlertTitle/AlertTitle.d.ts index b9d7a90adae0e0..7af306b943d4d6 100644 --- a/packages/mui-material/src/AlertTitle/AlertTitle.d.ts +++ b/packages/mui-material/src/AlertTitle/AlertTitle.d.ts @@ -1,9 +1,9 @@ import * as React from 'react'; import { SxProps } from '@mui/system'; -import { InternalStandardProps as StandardProps, Theme } from '..'; +import { Theme, TypographyProps } from '..'; import { AlertTitleClasses } from './alertTitleClasses'; -export interface AlertTitleProps extends StandardProps> { +export interface AlertTitleProps extends TypographyProps<'div'> { /** * The content of the component. */ diff --git a/packages/mui-material/src/AlertTitle/AlertTitle.spec.tsx b/packages/mui-material/src/AlertTitle/AlertTitle.spec.tsx new file mode 100644 index 00000000000000..2eacadda90b0ed --- /dev/null +++ b/packages/mui-material/src/AlertTitle/AlertTitle.spec.tsx @@ -0,0 +1,4 @@ +import * as React from 'react'; +import AlertTitle from '@mui/material/AlertTitle'; + +;