UNPKG

@findnlink/neuro-ui

Version:
13 lines (12 loc) 463 B
import { InputHTMLAttributes, HTMLInputTypeAttribute } from 'react'; import { UtilInterface } from '../../util/interfaces'; export interface InputProps extends InputHTMLAttributes<HTMLInputElement>, UtilInterface { /** Should it be a password input? */ type?: HTMLInputTypeAttribute | 'text' | 'password'; /** Is the value valid or not? */ error?: boolean; errorMessage?: string; icon?: any; limit?: true | false; value: string; }