Skip to content

Commit

Permalink
[material-ui][AlertTitle] Enable extending Typography props (#42269)
Browse files Browse the repository at this point in the history
Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
  • Loading branch information
2 people authored and web-flow committed May 22, 2024
1 parent c6dad66 commit b2c4e92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mui-material/src/AlertTitle/AlertTitle.d.ts
Original file line number Diff line number Diff line change
@@ -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<React.HTMLAttributes<HTMLDivElement>> {
export interface AlertTitleProps extends TypographyProps<'div'> {
/**
* The content of the component.
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/mui-material/src/AlertTitle/AlertTitle.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import * as React from 'react';
import AlertTitle from '@mui/material/AlertTitle';

<AlertTitle variant="h4" />;

0 comments on commit b2c4e92

Please sign in to comment.