Function: createStringField()
createStringField<
TProps,TElement>(options: {displayName:string;renderControl: (parameters:StringFieldRenderParameters<TProps,TElement>) =>ReactElement; }):NamedExoticComponent<TProps>
Defined in: src/components/AddSiteForm/fields/fieldFactories.tsx:43
Creates a memoized string-based form field component that automatically wires the shared form field wrapper and value change plumbing.
Type Parametersโ
TPropsโ
TProps extends StringFieldPropsBase
TElementโ
TElement extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement
Parametersโ
optionsโ
displayNameโ
string
renderControlโ
(parameters: StringFieldRenderParameters<TProps, TElement>) => ReactElement
Returnsโ
NamedExoticComponent<TProps>