@cainthus/alex-library
Version:
Component React library for Cainthus - Alex Dashboard.
16 lines (12 loc) • 450 B
text/typescript
import { DateType, DateSelectFunction, RangedSelectFunction } from 'react-infinite-calendar';
export type Props = {
width: number | undefined | "auto" | "100%",
height: number | undefined | "auto",
onSelect: DateSelectFunction | RangedSelectFunction,
selected: DateType | false | { start: DateType; end: DateType };
};
export const defaultProps = {
width: 400,
height: 300
};
export type DefaultProps = Readonly<typeof defaultProps>;