UNPKG

@react-formgen/json-schema

Version:

A headless, type-safe, customizable, and super simple React form generator.

7 lines (6 loc) 276 B
/** * Hook to check if a specific field is required in the form schema. * @param path - Array of strings representing the path to the field. * @returns `true` if the field is required, `false` otherwise. */ export declare const useIsRequired: (path: string[]) => boolean;