Form field container with label and error handling.
import { FieldWrapper } from "@/components/ui";We'll never share your email.
Username is already taken.
<FieldWrapper label="Username">
<Input placeholder="Enter username" />
</FieldWrapper>Show required indicator
<FieldWrapper label="Email" required> <Input type="email" placeholder="you@example.com" /></FieldWrapper>Add helper text
<FieldWrapper label="Password" description="Must be at least 8 characters" required> <Input type="password" /></FieldWrapper>Show validation error
<FieldWrapper label="Email" error="Please enter a valid email address"> <Input type="email" error /></FieldWrapper>Full form with validation
<form className="space-y-4"> <FieldWrapper label="Name" required> <Input placeholder="John Doe" /> </FieldWrapper> <FieldWrapper label="Email" required error={errors.email} > <Input type="email" error={!!errors.email} /> </FieldWrapper> <FieldWrapper label="Bio" description="Tell us about yourself" > <Textarea rows={4} /> </FieldWrapper> <Button type="submit">Submit</Button></form>Configure your app with the features you need and download production-ready code.
Start Configuring