| 1 | import 'react' |
| 2 | import './text-input.css' |
| 3 | import type { ChangeEvent, JSX } from 'react' |
| 4 | |
| 5 | interface TextInputProps { |
| 6 | type?: string |
| 7 | value?: string |
| 8 | placeholder?: string |
| 9 | onChange(evt: ChangeEvent<HTMLInputElement>): void |
| 10 | } |
| 11 | |
| 12 | export function TextInput (props: TextInputProps): JSX.Element { |
| 13 | return ( |
| 14 | <input className='TextInput' {...props} /> |
| 15 | ) |
| 16 | } |