[pickers] Remove all the props passed by usePickers
to PickersLayout
and use the new contexts instead
#15495
Labels
component: pickers
This is the name of the generic UI component, not the React module!
The
PickersLayout
component (which is overridable withslots.layout
) receives a lot of props about the current state of the picker and pass some of them down to the slots it handles (actionBar
,toolbar
,tabs
andshortcut
).I plan to remove all the props it receives outside of the custom one defined in
slotProps.layout
.Why?
Avoid weird override using
slotProps.layout
(people should never doslotProps={{ layout: { isRtl: false }}}
for instance)Prepare for a composable API
Search keywords:
The text was updated successfully, but these errors were encountered: