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