export default function Input()

in source/4-landing-page-with-feedback-api/ui/src/Components/Input.tsx [11:24]


export default function Input(props: InputProps) {
  return (
    <div className={props.className}>
      <TextField
        variant="outlined"
        label={props.label}
        onChange={e => props.onChange(e.target.value)}
        rows={(props.multiline && 5) || undefined}
        multiline={props.multiline || false}
        fullWidth
      />
    </div>
  );
}