import * as React from 'react'; import { IBaseControls } from '../IBaseControls'; import './_textinput.scss'; import { Tooltip } from '../Tooltip'; export enum inputType { text = 'text', email = 'email', number = 'number', password = 'password' } export interface IInputProps extends IBaseControls { type: inputType; onBlur?: (event: React.SyntheticEvent) => void; spellCheck?: boolean; onClick?: any; testClass?: string; step?: any; min?: number; onKeyPress?: any; maxLength?: number; } export const TextInput = (props: IInputProps) => { const { id, name, type, customClass, placeholder, value, onChange, tabIndex = 0, disabled = false, hasError = false, autofocus = false, reference, onKeyUp, title, spellCheck = true, onBlur, onClick, onKeyDown, step, min, onKeyPress, maxLength } = props; return ( ); };