Loading...
Loading...
Loading...
React Hook Form integration with Radix Label, Slot, and accessible error messages.
Install
npx bouncekit@latest add formImport
import { Form } from "@/components/ui/form"import { Form, FormField, FormItem, FormLabel, FormControl, FormMessage } from "@/components/ui/form"
import { useForm } from "react-hook-form"
const form = useForm()
<Form {...form}>
<FormField name="email" render={({ field }) => (
<FormItem>
<FormLabel>Email</FormLabel>
<FormControl><Input {...field} /></FormControl>
<FormMessage />
</FormItem>
)} />
</Form>API Reference
Extends native HTML attributes — no custom props.
Source
src/components/ui/form.tsx