MCPcopy Create free account
hub / github.com/TryCatchLearn/Restore-v2 / AppTextInput

Function AppTextInput

client/src/app/shared/components/AppTextInput.tsx:9–26  ·  view source on GitHub ↗
(props: Props<T>)

Source from the content-addressed store, hash-verified

7} & UseControllerProps<T> & TextFieldProps
8
9export default function AppTextInput<T extends FieldValues>(props: Props<T>) {
10 const {fieldState, field} = useController({...props});
11
12 return (
13 <TextField
14 {...props}
15 {...field}
16 multiline={props.multiline}
17 rows={props.rows}
18 type={props.type}
19 fullWidth
20 value={field.value || ''}
21 variant="outlined"
22 error={!!fieldState.error}
23 helperText={fieldState.error?.message}
24 />
25 )
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected