@kform/react
Version:
React integration for KForm.
9 lines (8 loc) • 305 B
TypeScript
import { AbsolutePath } from "@kform/core";
/**
* Hook providing access to the current path within the context of a form.
*
* @returns The current path within the context of a form.
* @throws {NoFormContextError} When no form is in context.
*/
export declare function useCurrentPath(): AbsolutePath;