Learn how to use basic zodaf auto-form features
useAutoForm
function from @zodaf/react
package. The createForm
function accepts two arguments:
schema
: A zod schema object that defines the form fields and validation rules.config
: An object that defines the form configuration. This is optional.AutoForm
component from @zodaf/react
package. The AutoForm
component accepts the form instance as a prop.