// Input component extends from shadcnui - https://ui.shadcn.com/docs/components/input "use client"; import * as React from "react"; import { cn } from "@unsend/ui/lib/utils"; import { useMotionTemplate, useMotionValue, motion } from "framer-motion"; export interface InputProps extends React.InputHTMLAttributes {} const StyledInput = React.forwardRef( ({ className, type, ...props }, ref) => { const radius = 100; // change this to increase the rdaius of the hover effect const [visible, setVisible] = React.useState(false); let mouseX = useMotionValue(0); let mouseY = useMotionValue(0); function handleMouseMove({ currentTarget, clientX, clientY }: any) { let { left, top } = currentTarget.getBoundingClientRect(); mouseX.set(clientX - left); mouseY.set(clientY - top); } return ( setVisible(true)} onMouseLeave={() => setVisible(false)} className="p-[2px] rounded-lg transition duration-300 group/input" > ); } ); StyledInput.displayName = "Input"; export { StyledInput };