[DatePicker] Provide prop to customize the icons
See original GitHub issueThe icons are currently hard-coded:
There is already a keyboardIcon
prop, but that one controls the icon in the input adornment. I don’t really understand why that prop has “keyboard” in its name. It does not show a keyboard on the icon. And one would click that button precisely when not using the keyboard but rather the mouse to input a date. I’d call that one openIcon
(by function) or calendarIcon
(by icon content).
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
[DatePicker] Provide prop to customize the icons · Issue #23604
I don't really understand why that prop has "keyboard" in its name. It does not show a keyboard on the icon. And one...
Read more >How to change the icon in MUI DatePicker? - Stack Overflow
The components prop of DatePicker lets you override the inner components including the OpenPickerIcon , so this is how you override it.
Read more >Customize Material-UI Datepicker With React
Material-UI Datepicker is a great Tool we can use as a calendar, ... to use the renderDay prop of DatePicker to extend our...
Read more >The Ultimate Guide to Using and Styling the MUI ... - YouTube
... learn every aspect of the sx prop, styled API, and the theme, and never ... The MUI DatePicker has tons of nested...
Read more >Date and Time pickers - Custom components - MUI X
The date picker lets users select a date from a menu. ... As an example, you could override the ActionBar and pass additional...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure, I can take a stab at this. I can’t assign myself in GitHub, but stay tuned.
Well it’s not just about renaming the existing prop, but also about exposing new props for those two hard-coded icons.