@mitcsutt/kiln-forms
Version:
Kiln forms: typed React forms on TanStack Form, in component or JSON schema mode, rendered through kiln-ui
15 lines (14 loc) • 664 B
TypeScript
import type { UntypedFieldNode } from '../core/types.js';
interface FieldNodeViewProps {
node: UntypedFieldNode;
/** Item path inside a repeater (`'guests[2]'`), `''` at the root. */
prefix: string;
}
/**
* A field node (§10.6): the kit's bound component for its kind (`form.TextField` — so view mode,
* scopes and focus behave exactly as in component mode), with JSON rules compiled to field
* validators, condition flags from one primitive selector, `resets` as a change listener and
* `compute` as a derive registration.
*/
export declare function FieldNodeView({ node, prefix }: FieldNodeViewProps): import("react").JSX.Element;
export {};