Skip to main content

Interface: TextFieldProperties

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

Properties for the TextField component.

Extendsโ€‹

Propertiesโ€‹

error?โ€‹

readonly optional error: string

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

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

Inherited fromโ€‹

StringFieldPropsBase.error


helpText?โ€‹

readonly optional helpText: string

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

Help text to provide guidance to users

Inherited fromโ€‹

StringFieldPropsBase.helpText


idโ€‹

readonly id: string

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

Unique identifier for the field (required for accessibility)

Inherited fromโ€‹

StringFieldPropsBase.id


labelโ€‹

readonly label: string

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

Label text to display for the field

Inherited fromโ€‹

StringFieldPropsBase.label


required?โ€‹

readonly optional required: boolean

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

Whether the field is required for form submission

Inherited fromโ€‹

StringFieldPropsBase.required


max?โ€‹

readonly optional max: number

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

Maximum value for number inputs (ignored for text/url types)


min?โ€‹

readonly optional min: number

Defined in: src/components/AddSiteForm/TextField.tsx:74

Minimum value for number inputs (ignored for text/url types)


placeholder?โ€‹

readonly optional placeholder: string

Defined in: src/components/AddSiteForm/TextField.tsx:76

Placeholder text displayed when input is empty


type?โ€‹

readonly optional type: "number" | "text" | "url"

Defined in: src/components/AddSiteForm/TextField.tsx:78

Input type - text, url, or number


disabled?โ€‹

readonly optional disabled: boolean

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

Whether the field is disabled.

Inherited fromโ€‹

StringFieldPropsBase.disabled


onChange()โ€‹

readonly onChange: (value: string) => void

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

Change handler invoked with the new string value.

Parametersโ€‹

valueโ€‹

string

Returnsโ€‹

void

Inherited fromโ€‹

StringFieldPropsBase.onChange


valueโ€‹

readonly value: string

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

Current field value.

Inherited fromโ€‹

StringFieldPropsBase.value