import { Input, TextArea } from '../Input/Input'; import { InputBox, InputBoxProps } from '../InputBox/InputBox'; type TextInputProps = { id: string; name: string; type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'textarea'; required?: boolean; value?: string; disabled?: boolean; readOnly?: boolean; placeholder?: string; defaultValue?: string; autoFocus?: boolean; } & Partial & { cols?: number; rows?: number }; export const TextInput = ({ id, name, type, // = 'text', required = false, value, placeholder, defaultValue, tabIndex, disabled, readOnly, autoFocus, onChange, onFocus, onBlur, onKeyDown, ...inputBoxProps }: TextInputProps) => ( {type === 'textarea' ? (