[material-ui][AlertTitle] Missing Typography props when using AlertTitle #42015
Labels
component: alert
This is the name of the generic UI component, not the React module!
package: material-ui
Specific to @mui/material
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Link to live example: (required)
https://codesandbox.io/p/sandbox/cranky-wind-nw84pf?file=%2Fsrc%2FDemo.tsx
Steps:
variant
props, e.g.<AlertTitle variant="h6">
Current behavior
Type error:
Expected behavior
No type errors
Context
According to AlertTitle doc page this is a valid use case, however when doing this in practice we ran into type error.
If that is true, what is the best way to expose Typography props in AlertTitle? Is it just a matter of importing
TypographyProps
inAlertTitle.d.ts
and letAlertTitleProps
extends it? I'm not familiar with the codebase – thanks for checking!Your environment
npx @mui/envinfo
Search keywords: material-ui, AlertTitle
The text was updated successfully, but these errors were encountered: