
This component is returned by
useForm()
.You are required to render one – and only one – of these to make your form work.All inputs must be inside of the
<Form />
.Example
form-dialog.tsx
Props
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.
The contents of your form, usually layout and input components.
A form must contain one – and only one –
<SubmitButton />
as a direct child.