/* eslint-disable */ import { DetailedHTMLProps, forwardRef, InputHTMLAttributes, RefObject, } from "react"; import { cn } from "@/lib/utils"; interface FieldProps extends DetailedHTMLProps< InputHTMLAttributes, HTMLInputElement > { label?: string; name: string; } const Field = forwardRef( ({ label, className, name, ...props }: FieldProps, forwardedRef) => { return (
{label && ( )} } className="w-full bg-gray-50 dark:bg-gray-900 px-4 py-2 border rounded-md border-black/10 dark:border-white/25" name={name} id={name} {...props} />
); } ); Field.displayName = "Field"; export default Field;