grommet
Version:
focus on the essential experience
42 lines (37 loc) • 991 B
TypeScript
import * as React from 'react';
export interface TimeInputProps {
defaultValue?: string;
disabled?: boolean;
format?: '12' | '24';
id?: string;
messages?: {
activePeriodValue?: string;
activeSection?: string;
activeSectionValue?: string;
chooseTime?: string;
currentValue?: string;
inputLabel?: string;
invalidTime?: string;
openDrop?: string;
sectionHours?: string;
sectionMeridiem?: string;
sectionMinutes?: string;
sectionSeconds?: string;
};
minuteStep?: number;
name?: string;
onChange?: (event: { value?: string }) => void;
readOnly?: boolean;
value?: string;
}
export interface TimeInputExtendedProps
extends TimeInputProps,
Omit<
React.DetailedHTMLProps<
React.InputHTMLAttributes<HTMLInputElement>,
HTMLInputElement
>,
'defaultValue' | 'onChange' | 'onError' | 'size' | 'value'
> {}
declare const TimeInput: React.FC<TimeInputExtendedProps>;
export { TimeInput };