<script setup>
import { AutoForm } from '@mvtandas/autoform-vue'
import { ZodProvider } from '@autoform/zod'
import { z } from 'zod'
const schema = new ZodProvider(
z.object({
name: z.string().min(2),
email: z.string().email(),
role: z.enum(['developer', 'designer']),
})
)
</script>
<template>
<AutoForm :schema="schema" @submit="console.log" />
</template>
Happy to move the code into this monorepo if you'd like to make it the official Vue package!
Summary
I've built a Vue 3 integration for AutoForm: @mvtandas/autoform-vue
Currently published as
@mvtandas/autoform-vueon npm. Would love to contribute this as the official@autoform/vuepackage.What it does
@autoform/core— follows the same architecture as@autoform/reactAutoFormcomponent +useAutoFormcomposableUsage
Links
Happy to move the code into this monorepo if you'd like to make it the official Vue package!