soralabs

Cursor Bubble

Component 24

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

    201
  • Dia Text Reveal

    Dia Text Reveal

    143
  • Dock Nav

    Dock Nav

    133
  • Text Reveal Block

    Text Reveal Block

    105
  • Pixelated Image Reveal

    Pixelated Image Reveal

    94
  • Text Roll

    Text Roll

    60
  • Custom Cursor

    Custom Cursor

    47
  • Section CTA

    Section CTA

    28