@vnmfify/core
Version:
```shell npm i @vnmfify/core -S ```
24 lines (23 loc) • 867 B
TypeScript
import { ViewProps } from "@vnxjs/components/types/View";
import { ReactNode } from "react";
import { CalendarDayObject, CalendarType, CalendarValueType } from "./calendar.shared";
declare type CalendarSubtitleRender = (date: Date) => ReactNode;
export interface CalendarProps extends ViewProps {
type?: CalendarType;
title?: ReactNode;
subtitle?: ReactNode | CalendarSubtitleRender;
defaultValue?: CalendarValueType;
value?: CalendarValueType;
min?: Date;
max?: Date;
firstDayOfWeek?: number;
watermark?: boolean;
readonly?: boolean;
isVietNamese?: boolean;
children?: ReactNode;
formatter?(day: CalendarDayObject): CalendarDayObject;
onChange?(value: any): void;
onConfirm?(value: any): void;
}
declare function Calendar(props: CalendarProps): JSX.Element;
export default Calendar;