@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
22 lines (21 loc) • 855 B
TypeScript
import { ChangeEventHandler, FocusEventHandler } from 'react';
type ParamsType = {
errorExecution?: string;
initialValue?: string | number;
currentValue?: string | number;
keyValidation?: string;
onBlur?: FocusEventHandler<HTMLInputElement>;
onChange?: ChangeEventHandler<HTMLInputElement>;
onError?: (value: boolean) => void;
max?: string;
min?: string;
maxLength?: number;
};
type ReturnType = {
value: string | undefined | number;
inputRef?: React.MutableRefObject<HTMLInputElement>;
handleBlurInternal: FocusEventHandler<HTMLInputElement>;
handleChangeInternal: ChangeEventHandler<HTMLInputElement>;
};
export declare const useInputDeprecated: ({ errorExecution, initialValue, keyValidation, currentValue, onBlur, onChange, onError, max, min, maxLength, }: ParamsType) => ReturnType;
export {};