zod-auto-form
Version:
Auto-generate typed React forms from Zod schemas
27 lines (26 loc) • 678 B
TypeScript
import type { ArrayFieldItem } from "./array-field-types";
export type InternalFieldComponents = {
placeholder?: string;
label?: string;
title?: string;
description?: string;
disabled?: boolean;
required?: boolean;
selectOptions?: string[];
};
export type InternalArrayFieldComponents = {
fields: ArrayFieldItem[];
onAddField: () => void;
onRemoveField: (index: number) => void;
componentKey: string;
description?: string;
label?: string;
title?: string;
placeholder?: string;
disabled?: boolean;
required?: boolean;
selectOptions?: string[];
all_errors?: any;
name?: string;
path?: string;
};