Interface: FormFieldProps
Makaio Framework / contracts / FormFieldProps
Interface: FormFieldProps
Section titled “Interface: 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)
Properties
Section titled “Properties”className?
Section titled “className?”
optionalclassName?:string
Defined in: ../../../packages/contracts/src/shared/ui-config.ts:275
Optional additional CSS class.
error?
Section titled “error?”
optionalerror?: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.
idPrefix?
Section titled “idPrefix?”
optionalidPrefix?:string
Defined in: ../../../packages/contracts/src/shared/ui-config.ts:277
Optional id prefix (defaults to ‘field’).
onChange
Section titled “onChange”onChange: (
value) =>void
Defined in: ../../../packages/contracts/src/shared/ui-config.ts:273
Callback when the field value changes.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”void
value:
unknown
Defined in: ../../../packages/contracts/src/shared/ui-config.ts:271
Current value of the field.