How to use the @datepicker-react/hooks.useDatepicker function in @datepicker-react/hooks

To help you get started, we’ve selected a few @datepicker-react/hooks examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tresko / react-datepicker / packages / styled / src / components / Datepicker / Datepicker.tsx View on Github external
isDateSelected,
    isFirstOrLastSelectedDate,
    isDateHovered,
    firstDayOfWeek,
    onDateSelect,
    onResetDates,
    goToPreviousMonths,
    goToNextMonths,
    numberOfMonths,
    hoveredDate,
    onDateHover,
    isDateFocused,
    focusedDate,
    onDateFocus,
    isDateBlocked: isDateBlockedFn,
  } = useDatepicker({
    startDate,
    endDate,
    focusedInput,
    onDatesChange,
    minBookingDate,
    maxBookingDate,
    minBookingDays,
    isDateBlocked,
    exactMinBookingDays,
    unavailableDates,
    initialVisibleMonth,
    numberOfMonths: numberOfMonthsProp,
    firstDayOfWeek: firstDayOfWeekProp,
  })
  useImperativeHandle(ref, () => ({
    onDateSelect: (date: Date) => {

@datepicker-react/hooks

React hooks for datepicker.

MIT
Latest version published 3 years ago

Package Health Score

59 / 100
Full package analysis