Skip to content

Instantly share code, notes, and snippets.

@dhruvsakariya
dhruvsakariya / password-input.tsx
Created January 30, 2025 12:08 — forked from mjbalcueva/password-input.tsx
shadcn ui custom password input
'use client'
import * as React from 'react'
import { EyeIcon, EyeOffIcon } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { Input, type InputProps } from '@/components/ui/input'
import { cn } from '@/lib/utils'
const PasswordInput = React.forwardRef<HTMLInputElement, InputProps>(({ className, ...props }, ref) => {