@demark-pro/react-booking-calendar
Version:
A responsive customizable React Booking calendar with overbooking protection
32 lines (31 loc) • 1.26 kB
TypeScript
import { CSSProperties, ComponentPropsWithoutRef, PropsWithChildren } from "react";
import { CalendarDayState, ClickDayHandler, CommonProps } from "../types";
export type CalendarContainerProps = CommonProps & PropsWithChildren & {
innerProps: ComponentPropsWithoutRef<"div"> & {
isScrollable?: boolean;
};
};
export declare const CalendarContainer: (props: CalendarContainerProps) => JSX.Element;
export type MonthContainerProps = CommonProps & PropsWithChildren & {
innerProps?: {
style?: CSSProperties;
};
};
export declare const MonthContainer: (props: MonthContainerProps) => JSX.Element;
export type WeekContainerProps = CommonProps & PropsWithChildren & {
innerProps?: {};
};
export declare const WeekContainer: (props: WeekContainerProps) => JSX.Element;
export type DaysContainerProps = CommonProps & PropsWithChildren & {
innerProps?: {};
};
export declare const DaysContainer: (props: DaysContainerProps) => JSX.Element;
export type DayContainerProps = CommonProps & PropsWithChildren & {
date: Date;
state: CalendarDayState;
innerProps?: {
style?: CSSProperties;
onClick: ClickDayHandler;
};
};
export declare const DayContainer: (props: DayContainerProps) => JSX.Element;