({className, error, ...props}:InputProps)
| 3 | } |
| 4 | |
| 5 | export const Input = ({className, error, ...props}:InputProps) => { |
| 6 | return ( |
| 7 | <div className="pb-8 relative"> |
| 8 | <input |
| 9 | {...props} |
| 10 | className={`border-2 disabled:bg-gray-100 border-white bg-black p-2 outline-none text-white hover:bg-gray-800 focus:bg-gray-800 p-2 ${className ?? ""}`} |
| 11 | /> |
| 12 | {error && <p className=" absolute text-red-800">{error}</p>} |
| 13 | </div> |
| 14 | ); |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected