UNPKG

@kform/react

Version:

React integration for KForm.

9 lines (8 loc) 317 B
import { FormContextValue } from "../contexts/FormContext"; /** * Hook providing access to the current context within a form. * * @returns The current context within a form. * @throws {NoFormContextError} When no form is in context. */ export declare function useFormContext<T = unknown>(): FormContextValue<T>;