soralabs

Cursor Bubble

Component 28

About

A floating label that follows the cursor and elastic-pops into view when hovering over interactive links, buttons, or logos.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Cursor Bubble to your project and fits it to your theme.

Code

How Cursor Bubble is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import {
  CursorBubble,
  CursorBubbleTarget,
} from "@/components/ui/cursor-bubble";

export function CursorBubbleExample() {
  return (
    <CursorBubble className="flex h-[min(320px,50dvh)] w-full flex-col items-center justify-center gap-6 text-center sm:h-72">
      <CursorBubbleTarget label="explore">
        <span className="font-medium text-2xl underline underline-offset-4 sm:text-3xl">
          Our work
        </span>
      </CursorBubbleTarget>
      <CursorBubbleTarget label="say hi">
        <span className="text-muted-foreground text-sm">Get in touch</span>
      </CursorBubbleTarget>
    </CursorBubble>
  );
}

export default CursorBubbleExample;

Dependencies

More by soralabs

View all
  • Scroll Gallery

    Scroll Gallery

    233
  • Dia Text Reveal

    Dia Text Reveal

    149
  • Dock Nav

    Dock Nav

    144
  • Text Reveal Block

    Text Reveal Block

    114
  • Pixelated Image Reveal

    Pixelated Image Reveal

    97
  • Text Roll

    Text Roll

    62
  • Custom Cursor

    Custom Cursor

    50
  • Text Reveal (Mask)

    Text Reveal (Mask)

    30