UNPKG

@adaptui/react

Version:

Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by Reakit

16 lines (15 loc) 692 B
import { DatePickerState } from "@react-stately/datepicker"; import { DatePickerProps, DateValue } from "@react-types/datepicker"; import { PopoverState, PopoverStateProps } from "ariakit"; export declare function useDatePickerBaseState(props: DatePickerBaseStateProps): DatePickerBaseState; export declare type DatePickerBaseState = { datepicker: DatePickerState; popover: PopoverState; }; export declare type DatePickerBaseStateProps = DatePickerProps<DateValue> & PopoverStateProps & { /** * Determines whether the date picker popover should close automatically when a date is selected. * @default true */ shouldCloseOnSelect?: boolean | (() => boolean); };