Skip to content

Interface: FormFieldProps

Makaio Framework


Makaio Framework / contracts / FormFieldProps

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:267

Props for form field components.

Defines the contract between the form rendering infrastructure and individual field components. Both framework extensions and host UI implement components that accept this interface.

Field definition describing what to render

Current value of the field

Callback when the field value changes

Optional additional CSS class

Optional id prefix (defaults to ‘field’)

Error state message (when present, field shows error styling)

optional className?: string

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:275

Optional additional CSS class.


optional error?: string

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:279

Error message (when present, field shows error styling).


field: FieldDefinition

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:269

Field definition describing what to render.


optional idPrefix?: string

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:277

Optional id prefix (defaults to ‘field’).


onChange: (value) => void

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:273

Callback when the field value changes.

unknown

void


value: unknown

Defined in: ../../../packages/contracts/src/shared/ui-config.ts:271

Current value of the field.