(props: Props)
| 19 | }); |
| 20 | |
| 21 | const TextField = (props: Props) => { |
| 22 | const { value, disabled, className, placeholder, type, onChange } = { |
| 23 | ...getDefaultProps(), |
| 24 | ...props, |
| 25 | }; |
| 26 | |
| 27 | return ( |
| 28 | <input |
| 29 | className={`${className || ""} w-full border px-3 py-2 rounded-lg dark:border-zinc-700 dark:bg-zinc-800 focus:outline-2`} |
| 30 | type={type} |
| 31 | disabled={disabled} |
| 32 | placeholder={placeholder} |
| 33 | value={value} |
| 34 | onChange={(e) => onChange(e.target.value)} |
| 35 | /> |
| 36 | ); |
| 37 | }; |
| 38 | |
| 39 | export default TextField; |
nothing calls this directly
no test coverage detected