@mantine/dates
Version:
Calendars, date and time pickers based on Mantine components
13 lines (12 loc) • 543 B
TypeScript
/** Date value used by all Mantine components, format: `YYYY-MM-DD` */
export type DateStringValue = string;
/** DateTime value used by all Mantine components, format: `YYYY-MM-DD HH:mm:ss` */
export type DateTimeStringValue = string;
export type DayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
export type CalendarLevel = 'month' | 'year' | 'decade';
export interface ControlKeydownPayload {
cellIndex: number;
rowIndex: number;
date: DateStringValue;
}
export type DateLabelFormat = string | ((date: DateStringValue) => React.ReactNode);