Interface: FormProps
Imported from
@react-logic/utilsDefined in: utils/src/lib/use-form.tsx:41
Props on the rendered <Form> component.
Extends
Omit<FormHTMLAttributes<HTMLFormElement>,"onSubmit">
Type Parameters
S
S extends Schema
Properties
children
children:
ReactNode
Defined in: utils/src/lib/use-form.tsx:43
Overrides
Omit.children
onSubmit
onSubmit: (
values) =>void|Promise<void>
Defined in: utils/src/lib/use-form.tsx:49
Called with the typed values on a valid submit. Receives Values<S>
— the parsed-and-typed snapshot, not the raw input strings.
Invalid submits are swallowed after marking every field touched.
Parameters
Returns
void | Promise<void>