/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import './Input.css'; import * as React from 'react'; type Props = Readonly<{ 'data-test-id'?: string; label: string; onChange: (string) => void; placeholder?: string; value: string; }>; export default function TextInput({ label, value, onChange, placeholder = '', 'data-test-id': dataTestId, }: Props): JSX.Element { return (
{ onChange(e.target.value); }} data-test-id={dataTestId} />
); }