Skip to content

Commit

Permalink
[material-ui][AlertTitle] Enable extending Typography props (@lucasgmelo
Browse files Browse the repository at this point in the history
) (#42334)

Co-authored-by: Lucas Melo <lgrm@cin.ufpe.br>
Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
  • Loading branch information
3 people committed May 22, 2024
1 parent c6dad66 commit aabf8c9
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 aabf8c9

Please sign in to comment.