Skip to main content

Interface: BaseFormFieldProperties

Defined in: src/components/AddSiteForm/BaseFormField.tsx:57

Properties for the BaseFormField component.

Extendsโ€‹

Propertiesโ€‹

error?โ€‹

readonly optional error: string

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

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:123

Help text to provide guidance to users

Inherited fromโ€‹

FormFieldBaseProperties.helpText


idโ€‹

readonly id: string

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

Unique identifier for the field (required for accessibility)

Inherited fromโ€‹

FormFieldBaseProperties.id


labelโ€‹

readonly label: string

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

Label text to display for the field

Inherited fromโ€‹

FormFieldBaseProperties.label


required?โ€‹

readonly optional required: boolean

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

Whether the field is required for form submission

Inherited fromโ€‹

FormFieldBaseProperties.required


children()โ€‹

readonly children: (ariaProps: AriaProperties) => ReactNode

Defined in: src/components/AddSiteForm/BaseFormField.tsx:59

Render function that receives ARIA properties

Parametersโ€‹

ariaPropsโ€‹

AriaProperties

Returnsโ€‹

ReactNode