feat: add FormIf, FormWrapper, and form reset support
- FormIf for conditional field rendering based on form values
- FormWrapper for wrapping inputs with shared props
- Reset support in FormProvider and FormAction via return { reset: true }
This commit is contained in:
@@ -4,6 +4,7 @@ export type FormSubmitResult =
|
||||
| {
|
||||
toast?: string;
|
||||
close?: boolean;
|
||||
reset?: boolean;
|
||||
error?:
|
||||
| string
|
||||
| { what: string; where: string }
|
||||
|
||||
Reference in New Issue
Block a user