Skip to main content
Version: 0.1.2

Interface: FormProps

Imported from @react-logic/utils

Props on the rendered <Form> component.

Extends​

  • Omit<FormHTMLAttributes<HTMLFormElement>, "onSubmit">

Type Parameters​

S​

S extends Schema

Properties​

children​

children: ReactNode

Overrides​

Omit.children


onSubmit​

onSubmit: (values) => void | Promise<void>

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​

values​

Values<S>

Returns​

void | Promise<void>