Skip to content

Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.

fix(ui): merge caller className in PasswordInput via cn (#212)

Maitreyee Deshmukh50d54d9bb94b
diff --git a/web/src/components/ui/password-input.tsx b/web/src/components/ui/password-input.tsx
index 3d224d38f..259f2b684 100644
--- a/web/src/components/ui/password-input.tsx
+++ b/web/src/components/ui/password-input.tsx
@@ -3,15 +3,16 @@
import { useState } from 'react';
import { Eye, EyeOff } from 'lucide-react';
import { Input } from '@/components/ui/input';
+import { cn } from '@/lib/utils';
type PasswordInputProps = Omit<React.ComponentProps<typeof Input>, 'type'>;
-export function PasswordInput(props: PasswordInputProps) {
+export function PasswordInput({ className, ...props }: PasswordInputProps) {
const [visible, setVisible] = useState(false);
return (
<div className="relative">
- <Input type={visible ? 'text' : 'password'} {...props} className="pr-10" />
+ <Input type={visible ? 'text' : 'password'} className={cn('pr-10', className)} {...props} />
<button
type="button"
onClick={() => setVisible((v) => !v)}