@project44-manifest/react
Version:
Manifest Design System react components
29 lines • 873 B
TypeScript
/// <reference types="react" />
import { Selection } from '@react-types/shared';
import { CalendarDate } from '@internationalized/date';
import { RangeValue } from '../CalendarRange';
import { ListBoxProps } from '../ListBox';
export interface DefinedRange {
key: string;
label: string;
value: RangeValue<CalendarDate>;
}
export interface CalendarRangesProps {
/**
* Props passed to the listbox component
*/
listBoxProps?: ListBoxProps;
/**
* The ranges provided
*/
ranges?: DefinedRange[];
/**
* function to handle the change on Ranges
*/
onRangeChange?: (key: Selection, ranges: DefinedRange[]) => void;
}
export declare function CalendarRanges(props: CalendarRangesProps): JSX.Element;
export declare namespace CalendarRanges {
var displayName: string;
}
//# sourceMappingURL=CalendarRanges.d.ts.map