how do I remove the open next view
and open previous view
arrow buttons from the MUI StaticTimePicker
?
You can use slotProps
property.
For example:
<StaticTimePicker
slotProps={
{
nextIconButton: { sx: { display: 'none' } },
previousIconButton: { sx: { display: 'none' } }
}
}
defaultValue={dayjs("2022-04-17T15:30")}
/>