UNPKG

962 BTypeScriptView Raw
1/// <reference types="react" />
2/// <reference types="styled-jsx" />
3import { WithKeyboardInputProps, WithPureInputProps } from '../Picker/makePickerWithState';
4export interface BaseTimePickerProps {
5 /**
6 * 12h/24h view for hour selection clock
7 * @default true
8 */
9 ampm?: boolean;
10 /**
11 * Step over minutes
12 * @default 1
13 */
14 minutesStep?: number;
15}
16export interface TimePickerViewsProps extends BaseTimePickerProps {
17 /** Array of views to show */
18 views?: ('hours' | 'minutes' | 'seconds')[];
19 /** First view to show in timepicker */
20 openTo?: 'hours' | 'minutes' | 'seconds';
21}
22export declare type TimePickerProps = WithPureInputProps & TimePickerViewsProps;
23export declare type KeyboardTimePickerProps = WithKeyboardInputProps & TimePickerViewsProps;
24export declare const TimePicker: import("react").FC<TimePickerProps>;
25export declare const KeyboardTimePicker: import("react").FC<KeyboardTimePickerProps>;