Library
FormsZod
TypeScript-first schema validation often paired with Preact forms and loaders.
UnverifiedActive
Unverified
Compatibility has not been verified yet in the PreactHub catalog.
Packagezod
npm install zodimport { z } from "zod"; const signupSchema = z.object({ email: z.email() });Introduction
Zod is not a Preact UI library, but it is frequently part of Preact form validation and loader validation workflows.
Preact configuration
No framework adapter is required for schema parsing itself.
SSR notes
Pure validation logic works the same on the server and client.
Islands notes
When using this library inside an island, keep browser-specific setup inside the island component or an effect, and pass only serializable props from the server-rendered page.