npm i awesome-date-picker --save
Callback function on date select
The icon need to pass for calender render
This is optional prop this will be usefull if you need to pre define where to render the date picker.
<AppDatePicker
onDateSelect={(date:Date) => {}}
children={<Icon />}
prePos={{x?: number, y?: number}}
/>
Callback function on date select
The icon need to pass for calander render
This is optional prop this will be usefull if you need to pre define where to render the date range picker.
const onRangeSelect = (startDate: Date, endDate: Date, key: number) => {
console.log('startDate', startDate)
console.log('endDate', endDate)
};
<AppDateRangePicker
id=""
children={<Icon />}
onRangeSelect={onRangeSelect}
prePos={{x?: number, y?: number}}
/>
Contact me if you stuck anywhere harshanweb@gmail.com ✨