[Dialog] Types are not derived properly for the paper
slot when using component
#45142
Labels
component: dialog
This is the name of the generic UI component, not the React module!
status: expected behavior
Does not imply the behavior is intended. Just that we know about it and can't work around it
status: waiting for author
Issue with insufficient information
Steps to reproduce
Steps:
<Dialog />
using different way to customizePaperProps.component
Current behavior
Deprecated
DialogProps.PaperProps
derives types properly, butDialogProps.slotProps.paper
doesn'tExpected behavior
DialogProps.slotProps.paper
handles thePaperProps.component
prop and allows adding properties that don't exist on aPaper
, but exist on thecomponent
providedContext
I'm building a form dialog. I try to follow the example given in the docs for this pattern, but the example uses deprecated API, and the suggested newer API breaks types
Your environment
npx @mui/envinfo
Search keywords: slot, paper, dialog, types
The text was updated successfully, but these errors were encountered: