Skip to main content

Interface: StringFieldPropsBase

Defined in: src/components/AddSiteForm/fields/fieldFactories.tsx:57

Base properties shared across string-based form field components.

Hierarchyโ€‹

View Summary

Extendsโ€‹

Extended byโ€‹

Propertiesโ€‹

error?โ€‹

readonly optional error?: string

Defined in: shared/types/componentProps.ts:170

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error message to display when validation fails

Inherited fromโ€‹

FormFieldBaseProperties.error


helpText?โ€‹

readonly optional helpText?: string

Defined in: shared/types/componentProps.ts:172

Help text to provide guidance to users

Inherited fromโ€‹

FormFieldBaseProperties.helpText


idโ€‹

readonly id: string

Defined in: shared/types/componentProps.ts:174

Unique identifier for the field (required for accessibility)

Inherited fromโ€‹

FormFieldBaseProperties.id


labelโ€‹

readonly label: string

Defined in: shared/types/componentProps.ts:176

Label text to display for the field

Inherited fromโ€‹

FormFieldBaseProperties.label


required?โ€‹

readonly optional required?: boolean

Defined in: shared/types/componentProps.ts:178

Whether the field is required for form submission

Inherited fromโ€‹

FormFieldBaseProperties.required


disabled?โ€‹

readonly optional disabled?: boolean

Defined in: src/components/AddSiteForm/fields/fieldFactories.tsx:59

Whether the field is disabled.


onChangeโ€‹

readonly onChange: (value: string) => void

Defined in: src/components/AddSiteForm/fields/fieldFactories.tsx:61

Change handler invoked with the new string value.

Parametersโ€‹

valueโ€‹

string

Returnsโ€‹

void


valueโ€‹

readonly value: string

Defined in: src/components/AddSiteForm/fields/fieldFactories.tsx:63

Current field value.