@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
22 lines (21 loc) • 1.08 kB
TypeScript
import { Calendar, DateDuration } from "@internationalized/date";
import { RangeCalendarState } from "@react-stately/calendar";
import { DateValue, RangeCalendarProps } from "@react-types/calendar";
export declare function useRangeCalendarBaseState(props: RangeCalendarBaseStateProps): RangeCalendarBaseState;
export declare type RangeCalendarBaseState = RangeCalendarState;
export declare type RangeCalendarBaseStateProps = RangeCalendarProps<DateValue> & {
/** The locale to display and edit the value according to. */
locale: string;
/**
* A function that creates a [Calendar](../internationalized/date/Calendar.html)
* object for a given calendar identifier. Such a function may be imported from the
* `@internationalized/date` package, or manually implemented to include support for
* only certain calendars.
*/
createCalendar: (name: string) => Calendar;
/**
* The amount of days that will be displayed at once. This affects how pagination works.
* @default {months: 1}
*/
visibleDuration?: DateDuration;
};