最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How can I change icon in the KeyboardTimePicker (material-ui-pickers)? - Stack Overflow

programmeradmin0浏览0评论

I can't change the icon in the KeyboardTimePicker. I read about the KeyboardButtonProps and InputAdornmentProps but I don't understand how can it help me...

my KeyboardTimePicker

I can't change the icon in the KeyboardTimePicker. I read about the KeyboardButtonProps and InputAdornmentProps but I don't understand how can it help me...

my KeyboardTimePicker

Share Improve this question edited May 9, 2020 at 9:26 Olivier Tassinari 8,6814 gold badges25 silver badges26 bronze badges asked Jun 3, 2019 at 7:15 Anna ChaplyginaAnna Chaplygina 831 silver badge6 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 19

for keyboard icon there was created new prop : keyboardIcon

import Favorite from '@material-ui/icons/Favorite'
...
<KeyboardTimePicker
   label="Masked timepicker"
   placeholder="08:00 AM"
   mask="__:__ _M"
   value={selectedDate}
   onChange={handleDateChange}
   keyboardIcon={<Favorite />}
/>
发布评论

评论列表(0)

  1. 暂无评论