import { Description, Field, Label } from '@headlessui/react'; type FormFieldProps = React.InputHTMLAttributes & { label: string; error?: string; hint?: string; labelClassName?: string; inputClassName?: string; hintClassName?: string; }; export default function FormField({ label, error, hint, className, labelClassName, inputClassName, hintClassName, ...inputProps }: FormFieldProps) { return ( {error ? ( {error} ) : hint ? ( {hint} ) : null} ); }