enoughtools

Conversation Bubble

Component

About

A chat message bubble with grouped layout, style variants, alignment, and inline reaction badges for building conversation threads.

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

Code

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

Usage.tsx

import {
  Bubble,
  BubbleContent,
  BubbleGroup,
  BubbleReactions,
} from "@/components/ui/bubble";

export default function BubbleDemo() {
  return (
    <div className="flex min-h-[480px] w-full items-center justify-center bg-background p-8 text-foreground">
      <BubbleGroup className="w-[min(32rem,calc(100vw-2rem))]">
        <Bubble variant="secondary">
          <BubbleContent>Everything is ready for your review.</BubbleContent>
          <BubbleReactions aria-label="Reactions">
            <span aria-label="One thumbs up reaction">👍 1</span>
          </BubbleReactions>
        </Bubble>
        <Bubble align="end">
          <BubbleContent>Great. I’ll take a look this afternoon.</BubbleContent>
        </Bubble>
        <Bubble variant="ghost">
          <BubbleContent>
            Let me know if you want to walk through any of the changes together.
          </BubbleContent>
        </Bubble>
      </BubbleGroup>
    </div>
  );
}

Dependencies

More by enoughtools

View all
  • Tool Row

    Tool Row

  • Sidebar

    Sidebar

  • Group Label

    Group Label

  • Chart

    Chart

  • Callout

    Callout