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) 737 B
import { DateRangePickerState } from "@react-stately/datepicker"; import { DateRangePickerProps, DateValue } from "@react-types/datepicker"; import { PopoverState, PopoverStateProps } from "ariakit"; export declare function useDateRangePickerBaseState(props: DateRangePickerBaseStateProps): DateRangePickerBaseState; export declare type DateRangePickerBaseState = { datepicker: DateRangePickerState; popover: PopoverState; }; export declare type DateRangePickerBaseStateProps = DateRangePickerProps<DateValue> & PopoverStateProps & { /** * Determines whether the date picker popover should close automatically when a date is selected. * @default true */ shouldCloseOnSelect?: boolean | (() => boolean); };