UNPKG

chop-logic-components

Version:

React UI components library for Chop Logic project

18 lines (17 loc) 770 B
import { ChangeEventHandler, FocusEventHandler, HTMLInputAutoCompleteAttribute } from 'react'; import { ChopLogicInputProps, ChopLogicRegExpWithFlags, ChopLogicTextInputValidator } from './_common'; export interface ChopLogicTextInputProps extends ChopLogicInputProps { errorMessage?: string; clearable?: boolean; readOnly?: boolean; type?: 'text' | 'email' | 'password'; validator?: ChopLogicRegExpWithFlags | ChopLogicTextInputValidator; maxLength?: number; placeholder?: string; defaultValue?: string; autoComplete?: HTMLInputAutoCompleteAttribute; onClear?: () => void; onChange?: ChangeEventHandler<HTMLInputElement>; onBlur?: FocusEventHandler<HTMLInputElement>; onFocus?: FocusEventHandler<HTMLInputElement>; }