Skip to main content

Interface: FormFieldBaseProperties

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

Base form field properties for input components.

Remarksโ€‹

These props provide the essential form field functionality including labeling, validation, and help text support. This serves as a base interface that can be extended by components requiring additional properties like children.

Extended byโ€‹

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


helpText?โ€‹

readonly optional helpText: string

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

Help text to provide guidance to users


idโ€‹

readonly id: string

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

Unique identifier for the field (required for accessibility)


labelโ€‹

readonly label: string

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

Label text to display for the field


required?โ€‹

readonly optional required: boolean

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

Whether the field is required for form submission