Components / Chat / Chat Bubble
Chat Bubble
Message bubble primitives - avatars, filled/no-background appearances, timestamps, and actions.
Installation
Install the Chat Bubble React component with the shadcn CLI (after adding the @ai-primitive registry and theme, see Installation):
npx shadcn@latest add @ai-primitive/chat-bubble
Usage
import { ChatBubble, ChatBubbleAvatar, ChatBubbleContent, ChatBubbleMessage, ChatBubbleActions, ChatBubbleAction } from "@/components/ui/chat-bubble"
Related components
- Prompt Input - Auto-resizing chat input with attachments, an action menu, and a compact pill mode.
- Chat Demo - A full conversation - chat bubbles, prompt input, and a dummy AI reply wired together.
- Chat Container - Auto-scrolling chat viewport that sticks to the bottom as messages stream in.
Previous: Skeleton · Next: Prompt Input