Components
Form
Composable field layout with optional error map—aligned with shadcn Form ergonomics without requiring react-hook-form.
Tap to show a QR code for the Expo showcase deep link. The web preview below runs in the browser.
Loading...
Installation
Install the registry item directly, then add any package dependencies if you are setting the component up manually.
1
Install the component
Run the registry command below to add form to your project.
watermelon add form2
Import the component
Import Form from your local UI registry output.
Import
import { Form } from "@/components/ui/form";Import
Import
import {
Form,
FormControl,
FormDescription,
FormField,
FormItem,
FormLabel,
FormMessage,
} from "@/components/ui/form";Usage
Pass an errors object keyed by field name. FormMessage reads the message
for the surrounding FormField (or a name override).
Basic
Loading...
API Reference
Form accepts standard container props plus errors. Wire validation in your
app and update errors when values change.