1.0.3 • Published 4 years ago

@zackjones11/react-hook-datepicker v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

React Hook Date Picker (work in progress)

npm install @zackjones11/react-hook-datepicker --save

useDatePicker

const [selectedDate, setSelectedDate] = React.useState<Date | undefined>();

const {
  calendar,
  getDateProps,
  getPrevMonthButtonProps,
  getNextMonthButtonProps,
} = useDatePicker({ value: selectedDate, onChange: setSelectedDate });

useDateRangePicker

const {
  selectedRange,
  calendars,
  getDateProps,
  getPrevMonthButtonProps,
  getNextMonthButtonProps,
} = useDateRangePicker();

Check ./examples for detailed usage

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago