@mitcsutt/kiln-forms
Version:
Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui
14 lines (13 loc) • 614 B
TypeScript
import type { UntypedNode } from '../core/types.js';
interface NodeProps<N extends UntypedNode = UntypedNode> {
node: N;
/** Item path inside a repeater (`'guests[2]'`), `''` at the root. */
prefix: string;
}
/**
* One schema node (§10.6). `when` → a `When` gate whose governed names come from the static
* analysis (hidden fields pruned per `whenHidden` even if they never mounted). Unknown keys —
* possible only with untrusted schemas — render nothing and warn in dev.
*/
export declare function SchemaNodeView({ node, prefix }: NodeProps): import("react").JSX.Element | null;
export {};