Skip to content

shadcn.io is not affiliated with official shadcn/ui

Shadcn Bubble for React

Conversational bubble with variants, alignment, grouping, and reactions.

Hey there! what's up?
Hey! Want to see chat bubbles?
I can group messages, switch sides, and keep the whole thread easy to scan.
Sure. Hit me with your best demo.
Yes. You are reading a demo that is demoing itself. Very meta. Very on-brand.

Installation

bunx --bun shadcn@latest add https://kit.dev/r/base/bubble.json

Anatomy

Bubble
├── BubbleContent
└── BubbleReactions
BubbleGroup
├── Bubble
│   └── BubbleContent
└── Bubble
    └── BubbleContent

Usage

import { Bubble, BubbleContent, BubbleReactions } from "@/components/ui/bubble";
<Bubble className="max-w-full min-w-0">
  <BubbleContent>
    I checked the registry output and removed the stale route.
  </BubbleContent>
  <BubbleReactions>
    <span>👍</span>
  </BubbleReactions>
</Bubble>

Demos

Variants

Alignment

Group

Reactions

Collapsible

Tooltip

Popover

Markdown

API Reference