zod-to-fields
Version:
Turn your Zod schemas into configurable field arrays for easy integration with HTML, React, Vue, and more.
10 lines (9 loc) • 487 B
TypeScript
type EnhancedHTMLInputTypeAttribute = 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'select' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | (string & NonNullable<unknown>);
export type BaseFieldAttributes = {
tag: 'input' | 'select';
name: string;
id: string;
type: EnhancedHTMLInputTypeAttribute;
label: string;
};
export {};