UNPKG

ai-native-form

Version:

AI-powered React form assistant with GPT-4, speech input, and schema auto-generation.

9 lines (8 loc) 338 B
import { jsx as _jsx } from "react/jsx-runtime"; import { FormProvider, useForm } from "react-hook-form"; import { useAIForm } from "./useAIForm"; export const AIFormProvider = ({ children, apiKey }) => { const methods = useForm(); useAIForm(methods, apiKey); return _jsx(FormProvider, { ...methods, children: children }); };