import * as React from 'react'; import { FormControl, Input } from '@mui/joy'; import { FormLabelStart } from './FormLabelStart'; /** * Text form field (e.g. enter a host) */ export function FormTextField(props: { autoCompleteId: string, title: string | React.JSX.Element, description?: string | React.JSX.Element, tooltip?: string | React.JSX.Element, placeholder?: string, isError?: boolean, disabled?: boolean, value: string | undefined, onChange: (text: string) => void, }) { const acId = 'text-' + props.autoCompleteId; return ( props.onChange(event.target.value)} sx={{ flexGrow: 1 }} /> ); }