Material-ui-pickers: Input Icon

Created on 1 Nov 2017  路  2Comments  路  Source: mui-org/material-ui-pickers

is there is a way to provide an icon for the input something like <InputAdornment /> in material UI input

enhancement

Most helpful comment

Hi, about your proposal. It would work for any version of material-ui-picker, because material-ui TextField has an ability to pass the icon to input
Please refer

<DatePicker
   InputProps={{
      endAdornment: (
        <InputAdornment position="end">
           <IconButton>  add_alarm  </IconButton>
        </InputAdornment>
     )
  }}
/>

Also I`ve add this example to the demo

All 2 comments

Hi, yeah it would be really nice feature, so I will add it in the nearest release (alpha 12)

Hi, about your proposal. It would work for any version of material-ui-picker, because material-ui TextField has an ability to pass the icon to input
Please refer

<DatePicker
   InputProps={{
      endAdornment: (
        <InputAdornment position="end">
           <IconButton>  add_alarm  </IconButton>
        </InputAdornment>
     )
  }}
/>

Also I`ve add this example to the demo

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danmce picture danmce  路  3Comments

sakulstra picture sakulstra  路  3Comments

danmce picture danmce  路  3Comments

killjoy2013 picture killjoy2013  路  3Comments

aditya81070 picture aditya81070  路  3Comments