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