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 } from "@/components/ui/bubble";

const variants = [
  "default",
  "secondary",
  "muted",
  "tinted",
  "outline",
  "ghost",
  "destructive",
] as const;

export default function BubbleVariantsDemo() {
  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))]">
        {variants.map((variant) => (
          <Bubble variant={variant} key={variant}>
            <BubbleContent>
              {variant === "destructive"
                ? "The message could not be delivered. Please try again."
                : `${variant[0].toUpperCase()}${variant.slice(1)} bubble: the report is ready to review.`}
            </BubbleContent>
          </Bubble>
        ))}
      </BubbleGroup>
    </div>
  );
}

Dependencies

More by enoughtools

View all
  • Tool Row

    Tool Row

  • Sidebar

    Sidebar

  • Group Label

    Group Label

  • Chart

    Chart

  • Callout

    Callout