import { forwardRef, type InputHTMLAttributes, type TextareaHTMLAttributes } from "react"; import { cn } from "@/lib/utils"; /* ── Input ── */ interface InputProps extends InputHTMLAttributes { label?: string; error?: string; } export const Input = forwardRef( ({ className, label, error, id, ...props }, ref) => (
{label && ( )} {error && {error}}
) ); Input.displayName = "Input"; /* ── Textarea ── */ interface TextareaProps extends TextareaHTMLAttributes { label?: string; error?: string; } export const Textarea = forwardRef( ({ className, label, error, id, ...props }, ref) => (
{label && ( )}