@kform/react
Version:
React integration for KForm.
8 lines (7 loc) • 314 B
TypeScript
import { FormContextValue } from "../contexts/FormContext";
/**
* Hook providing access to the current context within a form.
* @throws {NoFormContextError} When no form is in context.
* @returns The current context within a form.
*/
export declare function useFormContext<T = unknown>(): FormContextValue<T>;