@vimeo/iris
Version:
Vimeo Design System
23 lines (22 loc) • 952 B
TypeScript
/// <reference types="react" />
import { IrisProps } from '../../../../utils';
import { TranslatedStrings } from '../DateRange/translationTypes';
export interface Props {
selected?: Date;
initialMonth?: Date;
minDate?: Date;
maxDate?: Date;
backOnly?: boolean;
forwardOnly?: boolean;
backOnClick?: VoidFunction;
forwardOnClick?: VoidFunction;
isRange?: boolean;
range?: [Date | null, Date | null];
hoverRange?: [Date | null, Date | null];
selectionStart?: Date;
selectionEnd?: Date;
onClick?: (date: Date) => void;
onMouseEnter?: (date: Date | null) => void;
translation?: TranslatedStrings;
}
export declare const Calendar: ({ onClick, selected, minDate, maxDate, backOnly, forwardOnly, backOnClick, forwardOnClick, isRange, range: [selectionStart, selectionEnd], hoverRange: [hoverStart, hoverEnd], onMouseEnter, translation, initialMonth, ...props }: IrisProps<Props>) => JSX.Element;