import * as React from "react"; import { cn } from "@/lib/utils"; export interface InputProps extends React.InputHTMLAttributes { startIcon?: React.ReactNode; endIcon?: React.ReactNode; } const Input = React.forwardRef( ({ className, type, startIcon, endIcon, ...props }, ref) => { return (
{startIcon && (
{startIcon}
)} {endIcon && (
{endIcon}
)}
); }, ); Input.displayName = "Input"; export { Input };