zod-to-fields
Version:
Turn your Zod schemas into configurable field arrays for easy integration with HTML, React, Vue, and more.
5 lines (4 loc) • 365 B
TypeScript
import { InputHTMLAttributes, SelectHTMLAttributes, OptionHTMLAttributes } from 'react';
export type PartialFieldInputAttributes = Partial<InputHTMLAttributes<HTMLInputElement>>;
export type PartialFieldSelectAttributes = Partial<SelectHTMLAttributes<HTMLSelectElement>>;
export type PartialFieldOptionAttributes = Partial<OptionHTMLAttributes<HTMLOptionElement>>;