Skip to content

Instantly share code, notes, and snippets.

View orionEsu's full-sized avatar
🎯
Focusing

Orion Gabriel orionEsu

🎯
Focusing
View GitHub Profile
@orionEsu
orionEsu / password-input.tsx
Created June 10, 2024 13:45 — forked from mjbalcueva/password-input.tsx
shadcn ui custom password input
"use client"
import { forwardRef, useState } from "react"
import { EyeIcon, EyeOffIcon } from "lucide-react"
import { Button } from "@/components/ui/button"
import { Input, InputProps } from "@/components/ui/input"
import { cn } from "@/lib/utils"
const PasswordInput = forwardRef<HTMLInputElement, InputProps>(
({ className, ...props }, ref) => {