Skip to main content

Interface: SelectFieldProperties

Defined in: src/components/AddSiteForm/SelectField.tsx:62

Properties for the SelectField 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


disabled?โ€‹

readonly optional disabled: boolean

Defined in: src/components/AddSiteForm/SelectField.tsx:64

Whether the field is disabled


onChange()โ€‹

readonly onChange: (value: string) => void

Defined in: src/components/AddSiteForm/SelectField.tsx:66

Callback function triggered when selection changes

Parametersโ€‹

valueโ€‹

string

Returnsโ€‹

void


optionsโ€‹

readonly options: SelectOption[]

Defined in: src/components/AddSiteForm/SelectField.tsx:68

Array of options to display in the dropdown


placeholder?โ€‹

readonly optional placeholder: string

Defined in: src/components/AddSiteForm/SelectField.tsx:70

Placeholder text shown when no option is selected


valueโ€‹

readonly value: string | number

Defined in: src/components/AddSiteForm/SelectField.tsx:72

Current selected value (string or number)