-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Menu] Deprecate *Props and complete slots
, slotProps
#44913
base: master
Are you sure you want to change the base?
Conversation
Netlify deploy previewTextField: parsed: +0.30% , gzip: +0.25% Bundle size reportDetails of bundle changes (Toolpad) |
const resolvedTransitionProps = | ||
typeof externalForwardedProps.slotProps.transition === 'function' | ||
? externalForwardedProps.slotProps.transition(ownerState) | ||
: externalForwardedProps.slotProps.transition; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use mergeSlotProps
here?
typeof slotProps.backdrop === 'function' | ||
? slotProps.backdrop(ownerState) | ||
: slotProps.backdrop, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use mergeSlotProps
here?
const transitionProps = | ||
typeof slotProps?.transition === 'function' | ||
? slotProps.transition(ownerState) | ||
: slotProps?.transition; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use mergeSlotProps
here?
Part of #41281
MenuListProps
andTransitionProps
.slots.transition
andslots.list