Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modifying width of input field in react day picker input

Is it possible to change the default width of input field of DayPickerInput? If yes, then how can I achieve it? I am not sure if we can do this with overlayComponent.

like image 827
aman Avatar asked Dec 18 '17 09:12

aman


1 Answers

You can use inputProps to add your props such as style to the input field. See docs: http://react-day-picker.js.org/api/DayPickerInput#inputProps

For example:

<DayPickerInput inputProps={{ style: { width: 200 } }} />
like image 153
gpbl Avatar answered Oct 31 '22 00:10

gpbl