Incoming
Compose an incoming message with its author context. Preserves the complete example's required parts, labels and providers. The example's local state remains owned by that composition.
"use client"
import { Avatar, AvatarFallback } from "@/components/ui/avatar"
import { Bubble, BubbleContent } from "@/components/ui/bubble"
import {
Message,
MessageAvatar,
MessageContent,
MessageFooter,
MessageGroup,
MessageHeader,
} from "@/components/ui/message"
export function MessageIncoming() {
return (
<MessageGroup className="w-full max-w-md">
<Message>
<MessageAvatar>
<Avatar size="sm">
<AvatarFallback>AI</AvatarFallback>
</Avatar>
</MessageAvatar>
<MessageContent>
<MessageHeader>Assistant</MessageHeader>
<Bubble variant="muted">
<BubbleContent>
The registry derives dependencies from the real imports, so they
cannot go stale.
</BubbleContent>
</Bubble>
<MessageFooter>09:41</MessageFooter>
</MessageContent>
</Message>
</MessageGroup>
)
}