This component is returned by
useForm().Example
form-dialog.tsx
Props
(values) => void | Promise<void>
required
What to do with the form values on submit. Typically you will call a server function.In TypeScript, the values will be strongly typed to match your form schema.
React.ReactNode
required
The contents of your form, usually layout and input components.
A form must contain one – and only one –
<SubmitButton /> as a direct child.