79380703

Date: 2025-01-23 10:47:32
Score: 1
Natty:
Report link

If you want to customize icon before passing to mui x date picker, you can assign arrow function which returns customized icon

import CalendarIcon"../Components/CalendarIcon";
    
    //…
    
 <DatePicker
   slots={{
     openPickerIcon: () => <CalendarMonthOutlinedIcon sx={{ fill: 'black' }} />
    }}
/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ishwar Kshirsagar