framecn

Message Bubble

Component 5

About

A chat message bubble with incoming/outgoing variants, an optional reaction badge, and a rise-in animation state for use in chat UIs.

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

Code

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

Usage.tsx

import { MessageBubble } from "@/components/ui/message-bubble";

export default function MessageBubbleDemo() {
  return (
    <div className="flex w-full max-w-sm flex-col gap-3 p-6">
      <MessageBubble variant="incoming" state="visible">
        Hey, did you see the new release?
      </MessageBubble>
      <MessageBubble variant="outgoing" state="visible" reaction="🔥">
        Yep, pushing it live now
      </MessageBubble>
    </div>
  );
}

More by framecn

View all
  • Blur Out Up

    Blur Out Up

    32
  • Shader Dithering

    Shader Dithering

    28
  • Top Down Letters

    Top Down Letters

    19
  • Zoom Through Transition

    Zoom Through Transition

    18
  • Strikethrough Replace

    Strikethrough Replace

    17
  • Mesh Gradient Background

    Mesh Gradient Background

    11
  • Format Morph

    Format Morph

    10
  • Terminal to Browser Deploy

    Terminal to Browser Deploy

    8