Skip to content
X 468

Auto Form

---
import { AutoForm } from "@/components/ui/auto-form"
import { Button } from "@/components/ui/button"
---
<AutoForm
fields={[
{ label: "Name", type: "text" },
{ label: "Email", type: "email" },
{ label: "Message", type: "textarea" },
]}
submit="Send"
/>

To install the form component, run the following command:

Terminal window
npx shadcn@latest add @fulldev/auto-form
import { AutoForm } from "@/components/ui/auto-form"
<AutoForm fields={[{ label: "Name", type: "text" }]} submit="Submit" />