import React from 'react'; import classnames from 'classnames'; import { TextVariant, BackgroundColor, BorderStyle, } from '../../../helpers/constants/design-system'; import { Text, TextProps } from '../text'; import { PolymorphicRef } from '../box'; import { InputProps, InputType, InputComponent } from './input.types'; export const Input: InputComponent = React.forwardRef( ( { autoComplete, autoFocus, className = '', defaultValue, disabled, error, id, maxLength, name, onBlur, onChange, onFocus, placeholder, readOnly, required, type = InputType.Text, value, textVariant = TextVariant.bodyMd, disableStateStyles, ...props }: InputProps, ref: PolymorphicRef, ) => ( )} /> ), );