import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import classnames from 'classnames'; const baseInputClasses = 'shadow transition duration-300 appearance-none border border-inputfield-main focus:border-inputfield-focus focus:outline-none disabled:border-inputfield-disabled rounded w-full py-2 px-3 text-sm text-white placeholder-inputfield-placeholder leading-tight'; const transparentClasses = { true: 'bg-transparent', false: 'bg-black', }; const smallInputClasses = { true: 'input-small', false: '' } const Input = ({ id, label, containerClassName = '', labelClassName = '', className = '', transparent = false, smallInput = false, type = 'text', value, onChange, onFocus, autoFocus, onKeyPress, onKeyDown, readOnly, disabled, ...otherProps }) => { return (