@mui/x-date-pickers
Version:
The community edition of the MUI X Date and Time Picker components.
22 lines • 1.22 kB
TypeScript
import type { MakeOptional } from '@mui/x-internals/types';
import type { UseFieldInternalProps } from "../internals/hooks/useField/index.js";
import type { TimeValidationError, BuiltInFieldTextFieldProps } from "../models/index.js";
import type { ExportedValidateTimeProps } from "../validation/validateTime.js";
import type { AmPmProps } from "../internals/models/props/time.js";
import type { PickerValue } from "../internals/models/index.js";
import type { ExportedPickerFieldUIProps, PickerFieldUISlotProps, PickerFieldUISlots } from "../internals/components/PickerFieldUI.js";
export interface UseTimeFieldProps extends MakeOptional<UseFieldInternalProps<PickerValue, TimeValidationError>, 'format'>, ExportedValidateTimeProps, ExportedPickerFieldUIProps, AmPmProps {}
export type TimeFieldProps = UseTimeFieldProps & Omit<BuiltInFieldTextFieldProps, keyof UseTimeFieldProps> & {
/**
* Overridable component slots.
* @default {}
*/
slots?: TimeFieldSlots;
/**
* The props used for each component slot.
* @default {}
*/
slotProps?: TimeFieldSlotProps;
};
export interface TimeFieldSlots extends PickerFieldUISlots {}
export interface TimeFieldSlotProps extends PickerFieldUISlotProps {}