[pickers] Simplify the ownerState
on every slot to only pass a small object with valuable information
#14475
Labels
breaking change
component: pickers
This is the name of the generic UI component, not the React module!
dx
Related to developers' experience
v8.x
Right now, the
ownerState
passed to styled components or slots is the props of the component calling it (plus 1-2 properties on some occasions).This make these objects very complex to reason about because people don't know which component is calling a certain slot and which props it has.
Additionally some valuable information are not part of those prop (the slots called by the
useXXXPicker
hooks don't even have the opening status).Search keywords:
The text was updated successfully, but these errors were encountered: