UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

Magic UI/Interactive Hover Button

Buttons
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

Interactive Hover Button

npx shadcn@latest add https://magicui.design/r/interactive-hover-button.json
Open in v0 Docs Repo
Library
Magic UI
License
MIT
Stack
React · Tailwind CSS
Size
31 lines
Demo
From Magic UI

Code

registry/magicui/interactive-hover-button.tsx

import { ArrowRight } from "lucide-react"

import { cn } from "@/lib/utils"

export function InteractiveHoverButton({
  children,
  className,
  ...props
}: React.ButtonHTMLAttributes<HTMLButtonElement>) {
  return (
    <button
      className={cn(
        "group bg-background relative w-auto cursor-pointer overflow-hidden rounded-full border p-2 px-6 text-center font-semibold",
        className
      )}
      {...props}
    >
      <div className="flex items-center justify-center gap-2">
        <div className="bg-primary h-2 w-2 rounded-full transition-all duration-300 group-hover:scale-[100.8]"></div>
        <span className="inline-block transition-all duration-300 group-hover:translate-x-12 group-hover:opacity-0">
          {children}
        </span>
      </div>
      <div className="text-primary-foreground absolute top-0 z-10 flex h-full w-full translate-x-12 items-center justify-center gap-2 opacity-0 transition-all duration-300 group-hover:-translate-x-5 group-hover:opacity-100">
        <span>{children}</span>
        <ArrowRight />
      </div>
    </button>
  )
}

More like this

Tooltip

shadcn/ui·Overlays

GitHub Stars Button

Animate UI·BackgroundsMIT+

Ai Input

SmoothUI·Inputs & forms

Input Otp

shadcn/ui·Inputs & forms

Bell Button

Kokonut UI·Buttons

Target Cursor

React Bits·Cursor & effectsMIT+

Skeleton

shadcn/ui·Feedback & loaders

Toolbar Dynamic

Motion Primitives·Navigation

Toolbar Expandable

Motion Primitives·Navigation

8-bit Tooltip

8bitcn·Overlays

Carousel

HextaUI·Media & 3D

Avatar

shadcn/ui·Media & 3D

8-bit Checkbox

8bitcn·Inputs & forms

Ai Orb Face

SmoothUI·Backgrounds

8-bit Switch

8bitcn·Inputs & forms