import { forwardRef, type InputHTMLAttributes } from 'react'
import { clsx } from 'clsx'
interface InputProps extends InputHTMLAttributes {
label?: string
error?: string
}
export const Input = forwardRef(
({ className, label, error, id, ...props }, ref) => {
return (
{label && (
)}
{error &&
{error}
}
)
}
)
Input.displayName = 'Input'