Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netzo/components/blocks/form/utils.ts>zodToHtmlInputProps

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function zodToHtmlInputProps
import { zodToHtmlInputProps } from "https://deno.land/x/netzo@0.4.40/components/blocks/form/utils.ts";

Convert a Zod schema to HTML input props to give direct feedback to the user. Once submitted, the schema will be validated completely.

Parameters

schema:
| z.ZodNumber
| z.ZodString
| z.ZodOptional<z.ZodNumber | z.ZodString>
| any

Returns

JSX.HTMLAttributes<HTMLInputElement>