How to disable underline to Material UI's datepicker in React?

后端 未结 1 529
南笙
南笙 2021-02-19 07:03

How can I disable showing underline to material-ui-pickers?

sandbox https://codesandbox.io/s/l2ykr7kwvz?from-embed

I want to removing underline

相关标签:
1条回答
  • 2021-02-19 07:55

    material-ui date-picker is a text field from the foundation and you can remove the underline simply using input-props

    (DatePicker, TimePicker and DateTimePicker all will work this way)

    <DatePicker
      value={selectedDate}
      InputProps={{
       disableUnderline: true,
      }}
      onChange={this.handleDateChange}
    /> 
    

    find the example from here

    hope this will help you

    0 讨论(0)
提交回复
热议问题