@project44-manifest/react
Version:
Manifest Design System react components
31 lines • 1.19 kB
TypeScript
import type { RangeCalendarProps } from '@react-types/calendar';
import { DateValue } from '@internationalized/date';
import { As, Options, Props } from '../../system';
import type { StyleProps } from '../../types';
import { DefinedRange } from '../CalendarRanges';
export declare type CalendarElement = 'div';
export interface CalendarRangeOptions<T extends As = CalendarElement> extends Options<T>, RangeCalendarProps<DateValue>, StyleProps {
/**
* Allows to show or hide the calendar of the component
*
* @default true
* @example
* <DateRangePicker showCalendar={false} />
*/
showCalendar?: boolean;
/**
* Allows to pass or avoid the ranges to the component
*
* @default false
* @example
* <DateRangePicker showRanges={false} />
*/
showRanges?: boolean;
/**
* Brings the list of ranges defined to the component
*/
ranges?: DefinedRange[];
}
export declare type CalendarRangeProps<T extends As = CalendarElement> = Props<CalendarRangeOptions<T>>;
export declare const CalendarRange: import("../../system").Component<CalendarRangeOptions<"div">>;
//# sourceMappingURL=CalendarRange.d.ts.map