import { cx } from "zeb";
interface InputProps {
type?: string;
placeholder?: string;
value?: string;
defaultValue?: string;
onChange?: (e: any) => void;
disabled?: boolean;
className?: string;
[key: string]: any;
}
export function Input({ className, type = "text", ...rest }: InputProps) {
return (
<input
type={type}
className={cx(
"flex h-9 w-full rounded-md border border-gray-200 bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-950 disabled:cursor-not-allowed disabled:opacity-50",
className
)}
{...rest}
/>
);
}
export default Input;