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:
MessageAvatarrenders a 28px iOS ↔ 24px macOS circle with a Contacts-style gray gradient (accepting initials or anAvatarcomponent) and automatically aligns with the last bubble whenMessageFooteris present. - Alignment:
Message align="end"reverses the row and right-aligns child bubbles and delivery receipts.
Installation (Shadcn Registry)
npx shadcn@latest add @apple-liquid/messageUsage
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
| Property | Mobile (< 768px, iOS 27) | Desktop (>= 768px, macOS 27) |
|---|---|---|
| Avatar size | 28px | 24px |
| Header / footer font size | 12px | 11px |
| Avatar-to-bubble gap | 8px | 6px |
| Message row spacing | 12px | 10px |
Props API
Message
| Prop | Type | Default | Description |
|---|---|---|---|
align | 'start' | 'end' | 'start' | end places the avatar on the right and right-aligns bubbles and status text |
Menubar
Responsive Apple Liquid Glass menubar displaying a floating pill macOS 27 glass bar with seamless hover switching on desktop, and automatically adapting to an iOS 27 bottom Liquid Glass Drawer with grouped rows on mobile.
MessageScroller
Chat history scroll container that auto-pins to the latest message while preserving reading position, revealing a floating Liquid Glass Jump to Latest button when scrolled up.