phx-react
Version:
PHX REACT
25 lines (24 loc) • 994 B
TypeScript
import React from 'react';
import { UseFormRegisterReturn } from 'react-hook-form';
import { TimeProps } from './component/Time';
export interface TimePickerProps extends TimeProps {
className?: string;
label?: string;
disabled?: boolean;
readOnly?: boolean;
onChange?(value: any): void;
defaultValue?: string;
register?: UseFormRegisterReturn;
origin?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
id?: string;
error?: boolean;
errorType?: 'required-field' | 'custom-message';
errorMessageCustom?: string;
min?: string;
max?: string;
helpText?: string;
placeholder?: string;
setValueUseForm?: any;
keySetValueUseForm?: string;
}
export declare function PHXTimePicker({ className, defaultValue, disabled, readOnly, error, errorType, errorMessageCustom, id, origin, label, onChange, register, step, min, max, helpText, placeholder, setValueUseForm, keySetValueUseForm, }: TimePickerProps): React.JSX.Element;