"use client"; import React, { forwardRef } from "react"; import { cn } from "../../utils/cn"; export interface InputProps extends React.InputHTMLAttributes { label?: string; helperText?: string; error?: string; } export const Input = forwardRef( ({ className, label, helperText, error, type, ...props }, ref) => { const inputId = React.useId(); return (
{label && ( )} {error &&

{error}

} {helperText && !error && (

{helperText}

)}
); } ); Input.displayName = "Input";