[英]How can I change icon in the KeyboardTimePicker (material-ui-pickers)?
I can't change the icon in the KeyboardTimePicker
.我无法更改
KeyboardTimePicker
的图标。 I read about the KeyboardButtonProps
and InputAdornmentProps
but I don't understand how can it help me...我读过有关
KeyboardButtonProps
和InputAdornmentProps
但我不明白它对我有什么帮助...
for keyboard icon there was created new prop : keyboardIcon
为键盘图标创建了新道具:
keyboardIcon
import Favorite from '@material-ui/icons/Favorite'
...
<KeyboardTimePicker
label="Masked timepicker"
placeholder="08:00 AM"
mask="__:__ _M"
value={selectedDate}
onChange={handleDateChange}
keyboardIcon={<Favorite />}
/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.