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:
2026-06-07 23:04:48 +00:00 Unverified
parent e62202b2a8
commit acb16777d2
2 changed files with 59 additions and 4 deletions
+1
View File
@@ -4,6 +4,7 @@ export type FormSubmitResult =
| {
toast?: string;
close?: boolean;
reset?: boolean;
error?:
| string
| { what: string; where: string }