Button · Free prompt
Interactive Hover Button
Interactive Hover Button is a complete, paste-ready button build-prompt — a full art-direction spec for Lovable, Bolt, v0, Cursor and Claude. It's free: copy it below and paste it into your builder.

Interactive Hover ButtonButton · free prompt · copy-paste
A visually engaging button component that responds to hover with dynamic transitions, adapting smoothly between light and dark modes for enhanced user interactivity.
— Install —
npx shadcn@latest add "https://21st.dev/r/interactive-hover-button"
— Component source (Interactive Hover Button.tsx) —
import React from "react";
import { ArrowRight } from "lucide-react";
import { cn } from "@/lib/utils";
interface InteractiveHoverButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
text?: string;
}
const InteractiveHoverButton = React.forwardRef<
HTMLButtonElement,
InteractiveHoverButtonProps
>(({ text = "Button", className, ...props }, ref) => {
return (
<button
ref={ref}
className={cn(
"group relative w-32 cursor-pointer overflow-hidden rounded-full border bg-background p-2 text-center font-semibold",
className,
)}
{...props}
>
<span className="inline-block translate-x-1 transition-all duration-300 group-hover:translate-x-12 group-hover:opacity-0">
{text}
</span>
<div className="absolute top-0 z-10 flex h-full w-full translate-x-12 items-center justify-center gap-2 text-primary-foreground opacity-0 transition-all duration-300 group-hover:-translate-x-1 group-hover:opacity-100">
<span>{text}</span>
<ArrowRight />
</div>
<div className="absolute left-[20%] top-[40%] h-2 w-2 scale-[1] rounded-lg bg-primary transition-all duration-300 group-hover:left-[0%] group-hover:top-[0%] group-hover:h-full group-hover:w-full group-hover:scale-[1.8] group-hover:bg-primary"></div>
</button>
);
});
InteractiveHoverButton.displayName = "InteractiveHoverButton";
export { InteractiveHoverButton };
Browse & preview free Unlock everything — from $19/mo

