react-timekeeper
Version:
Time picker based on the style of the Google Keep app
13 lines (12 loc) • 592 B
TypeScript
/// <reference types="react" />
import { ConfigProps } from '../hooks/useConfigContext';
import { TimeInput, ChangeTimeFn } from '../helpers/types';
export interface Props extends ConfigProps {
time?: TimeInput;
onChange?: ChangeTimeFn;
disabledTimeRange?: null | {
from: string;
to: string;
};
}
export default function TimepickerWithConfig({ time, onChange, coarseMinutes, forceCoarseMinutes, switchToMinuteOnHourSelect, switchToMinuteOnHourDropdownSelect, closeOnMinuteSelect, hour24Mode, onDoneClick, doneButton, disabledTimeRange, }: Props): JSX.Element;