UNPKG

reablocks

Version:
42 lines (41 loc) 973 B
import { FC } from 'react'; import { CalendarTheme } from '../CalendarTheme'; import { AmPm } from './CalendarTimes'; interface TimeColumnProps { /** * Array of time options to display in the column */ options: number[] | AmPm[]; /** * Currently selected time value */ value?: number | AmPm; /** * Minimum allowed time value */ min?: number; /** * Maximum allowed time value */ max?: number; /** * Theme configuration for the time column styling */ theme: CalendarTheme['time']; /** * Whether to use 12-hour cycle for the time picker. * @default false */ is12HourCycle?: boolean; /** * Whether the selected value is PM * @default false */ isPM?: boolean; /** * Callback fired when a time option is selected */ onSelect: (value: number | AmPm) => void; } export declare const TimeColumn: FC<TimeColumnProps>; export {};