UNPKG

@edancerys/ts-react-components-lib

Version:
46 lines (45 loc) 1.24 kB
import React, { ChangeEvent } from 'react'; import { StringProps } from './String'; import { DropDownProps } from './DropDown'; export interface InputProps { error?: ErrorProps; label?: StringProps; dropdownConfig?: DropDownProps; value?: string; name?: string; placeholder?: string; type?: string; height?: string; maxLength?: number; borderRadius?: string; margin?: string; padding?: string; width?: string; backgroundColor?: string; fontSize?: string; order?: number; className?: string; isCounter?: boolean; border?: string; borderBottom?: string; borderTop?: string; borderLeft?: string; borderRight?: string; minHeight?: string; onChange?: (e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | any>) => void; onFocus?: () => void; } export interface ErrorProps extends StringProps { bottom?: string; top?: string; left?: string; right?: string; backgroundColor?: string; borderRadius?: string; border?: string; padding?: string; height?: string; type?: string; isTextInput?: boolean; } export declare const Input: React.FC<InputProps>;