reablocks
Version:
Component library for React
41 lines (39 loc) • 930 B
TypeScript
import { AmPm } from './CalendarTimes';
import { CalendarTheme } from '../CalendarTheme';
import { FC } from 'react';
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.
*/
is12HourCycle?: boolean;
/**
* Whether the selected value is PM
*/
isPM?: boolean;
/**
* Callback fired when a time option is selected
*/
onSelect: (value: number | AmPm) => void;
}
export declare const TimeColumn: FC<TimeColumnProps>;
export {};