MCPcopy Index your code
hub / github.com/formkit/formkit / FormKitReactPlugin

Interface FormKitReactPlugin

packages/react/src/plugin.ts:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 * The global instance API for FormKit in React applications.
16 */
17export interface FormKitReactPlugin {
18 get: (id: string) => FormKitNode | undefined
19 setLocale: (locale: string) => void
20 setErrors: (
21 formId: string,
22 errors: string[] | Record<string, string | string[]>,
23 inputErrors?: string[] | Record<string, string | string[]>
24 ) => void
25 clearErrors: (formId: string) => void
26 submit: (formId: string) => void
27 reset: (formId: string, resetTo?: unknown) => void
28 options: FormKitOptions
29 rootConfig: FormKitRootConfig
30}
31
32/**
33 * React context for FormKit options.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected