Skip to content

shadcn-zod-form

CLI that reads a Zod schema file and writes the matching shadcn/ui form.

github.com/arkemis-labs/shadcn-zod-form

shadcn-zod-form website screenshot
Added
GitHub stars
235
License
MIT
Price
Free

About

About shadcn-zod-form

shadcn-zod-form turns a Zod schema into a form. Point the CLI at a schema file and it maps each Zod type to a suitable shadcn/ui form component, so you do not hand-write the field markup. The repository topics tie it to react-hook-form, shadcn-ui and Zod.

Setup is two commands: npx shadcn-zod-form@latest init prepares the project, then npx shadcn-zod-form@latest generate ./path/to/zod/schema.ts writes the form. The code is MIT licensed, has about 235 GitHub stars, and welcomes contributions. It suits teams that already define validation with Zod and want forms to follow the schema instead of duplicating it.

shadcn-zod-form features

4 features

  • Zod schema to shadcn/ui form generation
  • Automatic Zod type to component mapping
  • init and generate CLI commands
  • react-hook-form based output

Install shadcn-zod-form

1 command

Terminal

$ npx shadcn-zod-form@latest init

What you can build with shadcn-zod-form

3 use cases

  • Building a settings form from an existing Zod schema
  • Keeping a form and its validation in sync
  • Scaffolding a signup form from an API contract

Pricing

Ship it with Pro

The directory is free. Pro adds 6,000+ blocks, 14 premium templates and the MCP server, so your AI editor installs them for you.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What shadcn-zod-form is, how to install it, its license and its alternatives.

4.9 out of 5 from 150+ developers

Found your stack? Ship it.

6,000+ blocks, premium templates and MCP in every Pro plan. The directory stays free.

Get Pro