Skip to Content
Liquid Glass UI
Components

Message

Group chat message row layout combining avatar, sender name, chat bubbles, and delivery status sized to Apple Messages guidelines.

Fully compatible with the standard shadcn/ui JSX API (MessageGroup / Message / MessageAvatar / MessageContent / MessageHeader / MessageFooter), designed to pair directly with Bubble:

  • Group chat typography: Sender names (MessageHeader) and delivery receipts (MessageFooter) use 12px on iOS ↔ 11px on macOS secondary text aligned with bubble text inset.
  • Avatar: MessageAvatar renders a 28px iOS ↔ 24px macOS circle with a Contacts-style gray gradient (accepting initials or an Avatar component) and automatically aligns with the last bubble when MessageFooter is present.
  • Alignment: Message align="end" reverses the row and right-aligns child bubbles and delivery receipts.
apple-liquid-ui/preview/message-demo
MacBook · 16:10

Installation (Shadcn Registry)

npx shadcn@latest add @apple-liquid/message

Usage

import { Bubble, BubbleContent } from '@/components/ui/bubble';
import {
  Message,
  MessageAvatar,
  MessageContent,
  MessageFooter,
  MessageGroup,
  MessageHeader,
} from '@/components/ui/message';

export function Example() {
  return (
    <MessageGroup>
      <Message>
        <MessageAvatar>AL</MessageAvatar>
        <MessageContent>
          <MessageHeader>Alex Lin</MessageHeader>
          <Bubble variant="secondary">
            <BubbleContent>The design spec is updated.</BubbleContent>
          </Bubble>
        </MessageContent>
      </Message>
      <Message align="end">
        <MessageContent>
          <Bubble variant="default">
            <BubbleContent>Got it!</BubbleContent>
          </Bubble>
          <MessageFooter>Read 2:32 PM</MessageFooter>
        </MessageContent>
      </Message>
    </MessageGroup>
  );
}

Platform Differences

PropertyMobile (< 768px, iOS 27)Desktop (>= 768px, macOS 27)
Avatar size28px24px
Header / footer font size12px11px
Avatar-to-bubble gap8px6px
Message row spacing12px10px

Props API

Message

PropTypeDefaultDescription
align'start' | 'end''start'end places the avatar on the right and right-aligns bubbles and status text

On this page