ConnectedConnectForm
ConnectedConnectForm<
Schema
>(props
):Element
ConnectedConnectForm is a Form variant that accepts a schema and automatically constructs a form that collects all the inputs defined in your schema as well as several default Connect fields.
When provided with the pre-built tRPC methods installed by createConnectRouter the form will populate a user’s existing configuration values on load and automatically handle form submissions.
Type Parameters
Type Parameter |
---|
Schema extends ZodObject <any , UnknownKeysParam , ZodTypeAny , object , object > |
Parameters
Parameter | Type | Description |
---|---|---|
props | ConnectedConnectFormProps <Schema > |
Returns
Element