Interface: TextFieldProperties
Defined in: src/components/AddSiteForm/TextField.tsx:74
Properties for the TextField 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โ
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โ
labelโ
readonly
label:string
Defined in: shared/types/componentProps.ts:127
Label text to display for the field
Inherited fromโ
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/TextField.tsx:76
Whether the field is disabled
max?โ
readonly
optional
max:number
Defined in: src/components/AddSiteForm/TextField.tsx:78
Maximum value for number inputs (ignored for text/url types)
min?โ
readonly
optional
min:number
Defined in: src/components/AddSiteForm/TextField.tsx:80
Minimum value for number inputs (ignored for text/url types)
onChange()โ
readonly
onChange: (value
:string
) =>void
Defined in: src/components/AddSiteForm/TextField.tsx:82
Callback function triggered when value changes
Parametersโ
valueโ
string
Returnsโ
void
placeholder?โ
readonly
optional
placeholder:string
Defined in: src/components/AddSiteForm/TextField.tsx:84
Placeholder text displayed when input is empty
type?โ
readonly
optional
type:"number"
|"text"
|"url"
Defined in: src/components/AddSiteForm/TextField.tsx:86
Input type - text, url, or number
valueโ
readonly
value:string
Defined in: src/components/AddSiteForm/TextField.tsx:88
Current field value