An open API service indexing awesome lists of open source software.

https://github.com/colbywhite/rw-form-generator

A React component that generates a functional form based on a given zod schema
https://github.com/colbywhite/rw-form-generator

Last synced: 4 months ago
JSON representation

A React component that generates a functional form based on a given zod schema

Awesome Lists containing this project

README

        

# @colbyw/autoform

[![npm (scoped with tag)](https://img.shields.io/npm/v/%40colbyw/autoform/rc?logo=npm&label=%40colbyw%2Fautoform%40rc)](https://www.npmjs.com/package/@colbyw/autoform/v/rc)
![Netlify](https://img.shields.io/netlify/8384846f-9e3e-42ec-9a8f-a490c8187d72?logo=netlify)
![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/%40colbyw/autoform/rc)

The `AutoForm` component takes in a `zod` schema and generates a functional form for you so you never have to deal with a `input` tag again.

This figures out the expected HTML based upon the `zod` validation, meaning you don't have to figure it out yourself.
Simply define your data structure using a schema, and `AutoForm` takes care of the rest, rendering a fully operational form based on your schema.

# Links

- [Docs](https://redwood-autoform.netlify.app)
- [CodeSandbox demo](https://githubbox.com/colbywhite/rw-form-generator)
- [Feedback survey](https://forms.gle/Vrb9UWqb6JR8Jx9T8)
- [Form Generator project](https://www.notion.so/redwoodjs/Form-Generator-113ccba4a6614fc3b4c3dc62c31edd05?pvs=4) in Redwood's Notion
- [Original proposal](https://docs.google.com/document/d/1-2yYdznb79srxnZ5S7jsJx2eS0rrLpqyRfPWRk-T_3w/edit#) from @mdkess