DocsSupportPricing
Roadmap (has updates coming soon)XFigma3.7K
Sign inGet All-Access
  1. Components
  2. Message
  3. Message Avatars
MarkdownShare

Shadcn Message Avatars

Avatars on both sides. Built by composing Avatar, Bubble, Message. A free, open source shadcn message example you can install with npx shadcn@latest add @reui/c-message-2 and edit as your own code.

Bottom-anchored avatars that flip with the row, plus a presence dot.

For AI Agents

Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.

Best for: Photo avatars for both people, a green presence badge with a screen reader Online label and a long turn that wraps

When to use

  • Chat, support and team threads laid out turn by turn, with avatars, sender names and read receipts
  • Assistant replies carrying a copy, regenerate and rating toolbar, or a pending then streaming state
  • Shared images and documents carried in a turn beside its text

When not to use

  • A run of turns from one sender where only the last row carries a portrait: use the Consecutive Messages example
  • A text surface on its own, with no avatar slot, metadata row or side switching: use the Bubble component
  • A long thread that scrolls and must stay pinned to the newest turn: use the Message Scroller component
  • A complete assistant screen with a composer, a thread switcher and streaming controls: use the AI Chat blocks

Agent notes

  • MICHAEL_AVATAR and SARAH_AVATAR are Unsplash demo portraits; swap them for your users' avatar URLs
  • Badged rows set overflow-visible on MessageAvatar, since its round clip cuts the AvatarBadge in half
  • On an align end row only children of MessageContent that carry a data-slot move to the end; a plain element there keeps to the start
  • MessageHeader and MessageFooter set no gap, so a header or footer built from several nodes needs its own gap class
Markdownhttps://web.dev.reui.io/components/message/c-message-2.md
MCPget_example("c-message-2")
Installnpx shadcn@latest add @reui/c-message-2
Full index for agents:llms.txtReUI MCP setup

Shadcn Components in Message Avatars

  • Avatar
  • Bubble
  • Message

About Shadcn Message Avatars

Avatars on both sides. Built by composing Avatar, Bubble, Message. A free, open source shadcn message example you can install with npx shadcn@latest add @reui/c-message-2 and edit as your own code.

What You Can Build With Shadcn Message Avatars

  • Composes Avatar, Bubble, Message, so it drops into any project already using those components.
  • Install it with the shadcn CLI: npx shadcn@latest add @reui/c-message-2
  • Open source and free, with the full source on this page to copy or adapt.

More Shadcn Message Examples

  • Two-Sided Chat Two-sided conversation
  • Sender & Status Sender name and delivery status
  • Reply Actions Reply actions in the footer
  • Shared Files Files shared in a thread
  • Consecutive Messages Consecutive messages from one sender
  • Streaming Reply Streaming reply with a pending state

Related Shadcn Component Categories

  • Message Scroller

    Open-source shadcn message scroller components for chat transcripts, streaming replies, and jump-to-latest scrolling.

  • Native Select

    Open-source shadcn native select components for lightweight selects, mobile-friendly forms, and basic option picking.

  • Navigation Menu

    Open-source shadcn navigation menu components for site navigation, mega menus, and product navigation.

  • Number Field

    Open-source shadcn number field components for quantity pickers, pricing inputs, and step controls.

  • Pagination

    Open-source shadcn pagination components for table pagination, search results, and content archives.

  • Phone Input

    Open-source shadcn phone input components for international signup, contact forms, and country codes.

Frequently Asked Questions

When should I use Shadcn Message Avatars?

Use it for photo avatars for both people, a green presence badge with a screen reader Online label and a long turn that wraps.

Shadcn Message as a whole fits:

  • Chat, support and team threads laid out turn by turn, with avatars, sender names and read receipts
  • Assistant replies carrying a copy, regenerate and rating toolbar, or a pending then streaming state
  • Shared images and documents carried in a turn beside its text

For a run of turns from one sender where only the last row carries a portrait, use the Consecutive Messages example. For a text surface on its own, with no avatar slot, metadata row or side switching, use the Bubble component. For a long thread that scrolls and must stay pinned to the newest turn, use the Message Scroller component. For a complete assistant screen with a composer, a thread switcher and streaming controls, use the AI Chat blocks.

How do I install Shadcn Message Avatars?

Run npx shadcn@latest add @reui/c-message-2. The CLI copies the source into your project, so you own the code and can edit it freely.

Is Shadcn Message Avatars free to use?

Yes. Every ReUI component example is open source and free for personal and commercial projects.

Which components does Shadcn Message Avatars use?

It composes Avatar, Bubble, Message. The shadcn CLI installs those alongside the example.
PreviousTwo-Sided ChatNextSender & Status

Start building with ReUI Pro today.

Every Pro block, every style, and every future addition, with one license for unlimited projects.

Get All-Access

From $249, once. Lifetime updates.

Application

  • App Shell
  • Auth
  • Card
  • Dashboard
  • Dialog
  • Empty State
  • Event Calendar
  • Flow
  • Form
  • Gantt
  • Kanban Board
  • List
  • Navbar
  • Onboarding
  • Profile
  • Rich Text Editor
  • Schedule
  • Settings
  • Sheet
  • Stats2 meter cards moved here from Charts, 17 in all
  • Timeline
  • Whiteboard
  • Wizard

Data Grid

  • Base
  • AdvancedAdded 2 new Data Grid Advanced blocks, 5 in all
  • Columns
  • Drag & Drop
  • Editing
  • Expansion
  • Filtering
  • Grouping
  • Virtualization

Charts

  • Area ChartAdded a new Inbound Leads area chart block
  • Bar Chart
  • Composed Chart
  • Line Chart
  • Pie Chart
  • Radial Chart
  • Sankey ChartNew Sankey Chart category with 3 flow chart blocks
  • Slope ChartNew Slope Chart category with 2 rank-shift chart blocks
  • Sparkline
  • Status Tracker

AI & Agents

  • AI Chat
  • Agent Activity
  • AI UsageNew AI Usage category with 2 spend blocks

Solutions

  • Dev Ops
  • AI Ops
  • CRM
  • Agents
  • Analytics
  • Billing
  • Bookings
  • Files
  • Inventory
  • Users
  • Digital TwinNew Digital Twin category with 2 interactive 3D blocks

Templates

  • All templates

eCommerce

  • Category Card
  • Checkout
  • Comparison
  • Coupon
  • Filter Sidebar
  • Product Card
  • Product Detail
  • Product Grid
  • Receipt
  • Review
  • Shopping Cart
  • Wishlist
  • Shop Hero

Marketing

  • Blog
  • Compare
  • Contact
  • CTA
  • FAQ
  • Hero
  • How It Works
  • Pricing

Resources

  • Components
  • Blocks
  • Icons
  • MCP for Agents
  • Docs
  • Support
  • Pricing
  • Tailwind Plus Alternative
  • Roadmap(has updates coming soon)
  • AffiliateSoon

Legal

  • Privacy Policy
  • Terms & Conditions
  • License
  • Refunds
  • Cookies

© 2026 ReUI. All rights reserved.

3.7K