how do I remove the open next view and open previous view arrow buttons from the MUI StaticTimePicker?
open next view
open previous view
StaticTimePicker
2
You can use slotProps property.
slotProps
For example:
<StaticTimePicker slotProps={ { nextIconButton: { sx: { display: 'none' } }, previousIconButton: { sx: { display: 'none' } } } } defaultValue={dayjs("2022-04-17T15:30")} />
I’m not quite familiar with the API and this probably should not be considered an ‘answer’, but if everything else fails, why don’t you try some CSS to hide the elements:
div.MuiClockPicker-root > div.MuiPickersArrowSwitcher-root { display:none; }
Click here to cancel reply.
2
Answers
You can use
slotProps
property.For example:
I’m not quite familiar with the API and this probably should not be considered an ‘answer’, but if everything else fails, why don’t you try some CSS to hide the elements: