/** * * @file TextInput.tsx * @description This is a single-lined text field. * You can choose a placeholder, label, * and whether the field is mandatory. * @interface TextInputProps: * - label: the label to be displayed * - placeholder: placeholder text * - isMandatory: adds a red star if is. * * @return JSX.Element * */ import { JSX } from "react"; export interface TextInputProps { label: string; placeholder: string; isMandatory?: boolean; onChange: (event: React.ChangeEvent) => void; } export default function TextInput(props: TextInputProps): JSX.Element { return (
); }