import * as React from "react" import { cn } from "@/lib/utils" export interface InputProps extends React.InputHTMLAttributes { label?: string error?: string } const Input = React.forwardRef( ({ className, type, label, error, id, ...props }, ref) => { const generatedId = React.useId() const inputId = id || generatedId return (
{label && ( )} {error && (

{error}

)}
) } ) Input.displayName = "Input" export { Input }