UNPKG

@appbuckets/react-ui

Version:
18 lines (17 loc) 537 B
import * as React from 'react'; import type { DayPickerChangeHandler } from '../DayPicker'; export declare type UseDayPickerValueReturn = [ Date | null, DayPickerChangeHandler, React.Dispatch<React.SetStateAction<Date | null>> ]; /** * Use this hook to get automatically the color picker value * and the handler function to attach to color picker. * Additionally function to force change will be returned * * @param initialValue */ export declare function useDayPickerValue( initialValue?: Date ): UseDayPickerValueReturn;