Interactive Hover Button
- Source
- Magic UI ↗
- Author
- Magic UI
- Licence
- MIT
Loading…
On hover a dot floods the button and the label slides out for an arrow.
Code
"use client";
import { InteractiveHoverButton } from "@/lab/magicui/ui/interactive-hover-button";
export default function InteractiveHoverButtonDemo() {
return (
<div className="relative flex h-full w-full items-center justify-center">
<InteractiveHoverButton>Hover Me</InteractiveHoverButton>
</div>
);
}
Prompt
Build "Interactive Hover Button", a button animation. What it does: On hover a dot floods the button and the label slides out for an arrow. Write it as a single self-contained React component in TypeScript that fills its parent (w-full h-full), styled with Tailwind CSS, using lucide-react. It sits on a light background, in a 16:10 frame. Respect prefers-reduced-motion with a still state, pause work when the element is off screen, and keep it accessible. Original: https://magicui.design/docs/components/interactive-hover-button (Magic UI, MIT).