UNPKG

zod-form-kit

Version:

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

10 lines (9 loc) 253 B
import { z } from 'zod'; // Defines the primitive types that are supported by the form generator. export const supportedPrimitives = z.union([ z.string(), z.number(), z.boolean(), z.date(), z.enum(['']), // Placeholder for enums ]);