UNPKG

zod-form-kit

Version:

UI-agnostic form generation library based on Zod schemas with extensible adapter pattern

17 lines (16 loc) 564 B
import { ParsedField } from '../../utils/schema-parser'; import { z } from 'zod'; interface ObjectFieldProps { value: Record<string, any>; onChange: (value: Record<string, any>) => void; error?: string; required?: boolean; label: string; name: string; properties: Record<string, ParsedField>; form: any; path: string; zodSchema?: z.ZodTypeAny; } export declare function ObjectField({ error: _error, required, label, properties, form, path, zodSchema }: ObjectFieldProps): import("react/jsx-runtime").JSX.Element; export {};