import { InputHTMLAttributes, forwardRef } from 'react';
import { cn } from '@/lib/utils';
interface InputProps extends InputHTMLAttributes {
label?: string;
error?: string;
}
const Input = forwardRef(
({ className, label, error, ...props }, ref) => {
return (
{label && (
)}
{error && (
⚠
{error}
)}
);
}
);
Input.displayName = 'Input';
export { Input };