Skip to content
X GitHub

Form

---
import { Button } from "@/components/ui/button"
import { Form } from "@/components/ui/form"
---
<Form
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
pnpm dlx shadcn@latest add @fulldev-ui/form
import { Form } from "@/components/ui/form"
<Form fields={[{ label: "Name", type: "text" }]} submit="Submit" />