react-day-picker
react-day-picker copied to clipboard
Have a props to add icon to DayPickerInput
Hi @gpbl ,
Thank you for react-day-picker!
It would be great if react-day-picker has an icon like

And usage like:
<DayPickerInput iconPosition={'left' | 'right'} icon={<SomeIcon type='calendar'/>} />
Have a great day! threeid
Hi @threeid ! You can use the component prop: http://react-day-picker.js.org/api/DayPickerInput#component
It allows you to set a different component for the input field.