import { InputHTMLAttributes, ReactNode, forwardRef } from "react";
import clsx from "clsx";
export interface FormFieldProps extends InputHTMLAttributes {
label: string;
error?: string;
hint?: ReactNode;
}
const FormField = forwardRef(
({ label, error, hint, id, className, ...rest }, ref) => {
const fieldId = id ?? rest.name;
return (
);
},
);
FormField.displayName = "FormField";
export default FormField;