reablocks
Version:
Component library for React
36 lines (34 loc) • 852 B
TypeScript
import { CalendarTheme } from '../CalendarTheme';
import { FC } from 'react';
export type AmPm = 'AM' | 'PM';
export interface CalendarTimesProps {
/**
* The current date time value.
*/
value: Date;
/**
* The minimum selectable date for the calendar.
*/
min?: Date;
/**
* The maximum selectable date for the calendar.
*/
max?: Date;
/**
* Callback fired when the time changes.
*/
onChange: (newDate: Date) => void;
/**
* Theme for the Calendar Time section.
*/
theme?: CalendarTheme['time'];
/**
* Whether day of week labels are shown in the calendar
*/
showDayOfWeek?: boolean;
/**
* Whether to use 12-hour cycle for the time picker.
*/
is12HourCycle?: boolean;
}
export declare const CalendarTimes: FC<CalendarTimesProps>;