1.0.12 • Published 9 months ago

awesome-date-picker v1.0.12

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

Date picker and Date range picker for React js

Live Demo

Installation

npm i awesome-date-picker --save

How to use

Date picker

Props

onDateSelect

Callback function on date select

children

The icon need to pass for calender render

prePos

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}}
/>

Date range picker

onRangeSelect

Callback function on date select

children

The icon need to pass for calander render

prePos

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

1.0.12

9 months ago

1.0.11

9 months ago

1.0.10

9 months ago

1.0.8

9 months ago

1.0.5

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago

0.0.24

9 months ago

0.0.23

9 months ago

0.0.22

9 months ago

0.0.21

9 months ago

0.0.20

9 months ago

0.0.19

9 months ago

0.0.18

9 months ago

0.0.17

9 months ago

0.0.16

9 months ago

0.0.15

9 months ago

0.0.14

9 months ago

0.0.13

9 months ago

0.0.12

9 months ago

0.0.11

9 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago

0.0.0

9 months ago