Interface: FormProps<T>
Defined in: types/index.ts:60
Props for the Form component.
Type Parameters
T
T extends object
The type of the form data object
Properties
initialValues
initialValues:
T
Defined in: types/index.ts:62
Initial values for the form fields
validationSchema?
optionalvalidationSchema:ObjectSchema<T,AnyObject,any,"">
Defined in: types/index.ts:64
Optional Yup validation schema for form validation
onSubmit()?
optionalonSubmit: (value) =>void|Promise<void>
Defined in: types/index.ts:66
Callback function called when the form is successfully submitted
Parameters
value
T
Returns
void | Promise<void>
ref?
optionalref:RefObject<null|FormState<T>>
Defined in: types/index.ts:68
Optional ref to access the FormState instance directly
historyItems?
optionalhistoryItems:number
Defined in: types/index.ts:70
Number of history items to keep for undo/redo functionality (0 to disable)
historyItemThrottle?
optionalhistoryItemThrottle:number
Defined in: types/index.ts:72
Throttle for saving history items (every Nth change)
filterHistoryKeys?
optionalfilterHistoryKeys:string[]
Defined in: types/index.ts:74
Array of field paths to exclude from history tracking
onChange()?
optionalonChange: (value) =>void
Defined in: types/index.ts:76
Callback function called whenever form values change
Parameters
value
T
Returns
void