Moumen Soliman

Caret Mention Popover

Component 7

About

A comment/textarea box whose @-mention suggestion popover is anchored to the live text caret instead of the field's corner, gliding smoothly as you type.

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

Code

How Caret Mention Popover is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import MentionComposer from "@/components/ui/caret-mention-popover";

export default function CaretMentionPopoverDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-6">
      <div className="w-full max-w-md">
        <MentionComposer />
      </div>
    </div>
  );
}

Dependencies

More by Moumen Soliman

View all
  • Interactive Logs Table

    Interactive Logs Table

    1.4K
  • Glass Blog Card

    Glass Blog Card

    1.1K
  • Glowy Waves Hero

    Glowy Waves Hero

    921
  • Gallery Grid with Lightbox

    Gallery Grid with Lightbox

    790
  • Expanding Search Dock

    Expanding Search Dock

    762
  • Glassmorphism Portfolio

    Glassmorphism Portfolio

    653
  • Hero Section

    Hero Section

    605
  • Glass Checkout Card

    Glass Checkout Card

    483