Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

Functions

Beautify a camelCase string. e.g. "myString" -> "My String"

Get the lowest level Zod type. This will unpack optionals, refinements, etc.

Get the type name of the lowest level Zod type. This will unpack optionals, refinements, etc.

Search for a "ZodDefault" in the Zod stack and return its value.

Get all default values from a Zod schema.

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