---
title: "Bubble"
description: "A chat bubble for conversation interfaces, with grouping and emoji reactions. Pairs with Message and Message Scroller to build a chat."
plan: Free
docs: https://ui.edbn.me/docs/components/bubble
---

# Bubble

A chat bubble for conversation interfaces, with grouping and emoji reactions. Pairs with Message and Message Scroller to build a chat.

## Installation

```bash
npx shadcn@4.19.0 add https://ui.edbn.me/r/bubble.json
```

## Dependencies
- npm: @base-ui/react@^1.8.0, class-variance-authority@^0.7.1
- edbn: edbn-base

## Usage

```tsx examples/bubble-basic.tsx
"use client";
import { Bubble, BubbleContent, BubbleGroup } from "@/components/ui/bubble";

export default function BubbleBasicPreview() {
  return (
    <BubbleGroup>
      <Bubble variant="muted">
        <BubbleContent>Can you review this?</BubbleContent>
      </Bubble>
      <Bubble align="end">
        <BubbleContent size="sm">Absolutely.</BubbleContent>
      </Bubble>
    </BubbleGroup>
  );
}
```

## Files
- components/ui/bubble.tsx (134 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
