react-day-picker icon indicating copy to clipboard operation
react-day-picker copied to clipboard

Have a props to add icon to DayPickerInput

Open threeid opened this issue 8 years ago • 1 comments

Hi @gpbl ,

Thank you for react-day-picker!

It would be great if react-day-picker has an icon like screen shot 2018-05-09 at 10 08 10 am

And usage like: <DayPickerInput iconPosition={'left' | 'right'} icon={<SomeIcon type='calendar'/>} />

Have a great day! threeid

threeid avatar May 09 '18 03:05 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.

gpbl avatar May 09 '18 07:05 gpbl