{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "field", "title": "Field", "description": "A form field wrapper with label, description, and error states.", "dependencies": ["@base-ui/react"], "registryDependencies": ["utils"], "files": [ { "path": "src/components/ui/field.tsx", "content": "\"use client\";\n\nimport { Field as BaseField } from \"@base-ui/react/field\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Field = React.forwardRef<\n React.ComponentRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nField.displayName = \"Field\";\n\nconst FieldLabel = React.forwardRef<\n React.ComponentRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nFieldLabel.displayName = \"FieldLabel\";\n\nconst FieldControl = React.forwardRef<\n React.ComponentRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nFieldControl.displayName = \"FieldControl\";\n\nconst FieldDescription = React.forwardRef<\n React.ComponentRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nFieldDescription.displayName = \"FieldDescription\";\n\nconst FieldError = React.forwardRef<\n React.ComponentRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nFieldError.displayName = \"FieldError\";\n\nexport { Field, FieldLabel, FieldControl, FieldDescription, FieldError };\n", "type": "registry:ui" } ], "type": "registry:ui" }