Check out our talk at Remix Conf!

Auto-generated

In this example, all fields, labels, and options are inferred from the schema.

const schema = z.object({
  firstName: z.string().min(1),
  email: z.string().min(1).email(),
  howYouFoundOutAboutUs: z.enum(['fromAFriend', 'google']),
})

export default () => <Form schema={schema} />