@appbuckets/react-ui
Version:
Just Another React UI Framework
18 lines (17 loc) • 537 B
TypeScript
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;