Skip to content

Instantly share code, notes, and snippets.

View ProDanish203's full-sized avatar

Danish Siddiqui ProDanish203

View GitHub Profile
@mjbalcueva
mjbalcueva / password-input.tsx
Last active September 20, 2024 02:14
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) => {