A form field component with label, description, and error handling. Built on Base UI Field primitives.
We'll never share your email.
import {
FieldRoot,
FieldLabel,
FieldControl,
FieldDescription,
FieldError,
} from "@/components/ui/static/field"<FieldRoot>
<FieldLabel>Email</FieldLabel>
<FieldControl type="email" placeholder="Enter your email" />
<FieldDescription>We'll never share your email.</FieldDescription>
<FieldError>Please enter a valid email.</FieldError>
</FieldRoot>This will be your username.
Must be at least 8 characters.
namestringThe name of the field for form submission.
invalidbooleanfalseWhether the field is in an invalid state.
disabledbooleanfalseWhether the field is disabled.
requiredbooleanfalseWhether the field is required.