UNPKG

@kform/react

Version:

React integration for KForm.

13 lines (12 loc) 633 B
import { type FormManager } from "@kform/core"; /** * Hook providing access to the form manager within the context of a form. If a * form manager is provided as argument, then the provided argument is returned * instead. * @param formManager Optional argument which, when provided, is simply returned * as-is instead of the form manager within the context of a form. * @throws {NoFormManagerError} When no form manager was found. * @returns The form manager within the context of a form or, when provided, the * given form manager argument. */ export declare function useFormManager(formManager?: FormManager): FormManager;