UNPKG

fictoan-react

Version:

A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.

20 lines (19 loc) 1.1 kB
import { default as React, FormEventHandler } from 'react'; import { BaseInputComponentProps, InputCommonProps, InputFocusHandler, InputSideElementProps } from '../BaseInputComponent/constants'; import { InputLabelCustomProps } from '../InputLabel/InputLabel'; export type InputFieldElementType = HTMLInputElement; export type InputFieldProps = Omit<BaseInputComponentProps<HTMLInputElement>, "onChange"> & InputLabelCustomProps & InputCommonProps & InputSideElementProps & { type?: "text" | "password" | "email" | "number" | "tel" | "url" | "search" | "file"; placeholder?: string; autoComplete?: string; maxLength?: number; minLength?: number; pattern?: string; readOnly?: boolean; required?: boolean; onFocus?: InputFocusHandler; onBlur?: InputFocusHandler; onChange?: ((value: string) => void) | FormEventHandler<HTMLInputElement> | ((event: React.ChangeEvent<HTMLInputElement>) => void); }; export declare const InputField: React.ForwardRefExoticComponent<InputFieldProps & React.RefAttributes<HTMLInputElement>>; //# sourceMappingURL=InputField.d.ts.map