UNPKG

@mitcsutt/kiln-forms

Version:

Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui

9 lines (8 loc) • 443 B
import { type AnyKitForm } from '../runtime/formRuntime.js'; import type { ScopeHandle } from '../components/layouts/FieldScope/index.js'; /** * The number of **visible** errors (per the form's visibility policy) among the scope's fields, * leaving out hidden, disabled, read-only and excluded ones. Re-renders only when the count * changes. */ export declare function useScopeErrors(scope: ScopeHandle | null, form?: AnyKitForm): number;