"use client"; import { cn } from "@/lib/utils"; import { InputHTMLAttributes, TextareaHTMLAttributes, forwardRef } from "react"; interface InputProps extends InputHTMLAttributes { label?: string; error?: string; } const Input = forwardRef( ({ className, label, error, id, ...props }, ref) => { return (
{label && ( )} {error &&

{error}

}
); } ); Input.displayName = "Input"; // Textarea séparé interface TextareaProps extends TextareaHTMLAttributes { label?: string; error?: string; } const Textarea = forwardRef( ({ className, label, error, id, ...props }, ref) => { return (
{label && ( )}