Message: Composable conversation primitives for message rows, grouped bubbles, avatars, metadata, live markers, and a mount-only trailing-edge pop-up for newly sent rows. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Message
npx motion-ui-skill add message
Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Composable conversation primitives for message rows, grouped bubbles, avatars, metadata, live markers, and a mount-only trailing-edge pop-up for newly sent rows.
Install
npx motion-ui-skill add message
Dependencies
clsx
lucide-react
motion
react
react-dom
tailwind-merge
Usage
"use client";
import { ChatPreview } from "@/components/previews/agents/chat-preview";
export function MessagePreview() {
return (
<ChatPreview
showAvatars
showMetadata
assistantVariant="ghost"
placeholder="Ask a follow-up…"
/>
);
}
API Reference
Message
Prop
Type
Default
Required
Description
from
"user" | "assistant"
—
Yes
—
animateIn
boolean
false
No
Plays a trailing-edge pop-up once when this message row mounts.
className
string
—
No
—
MessageGroup
Prop
Type
Default
Required
Description
spacing
"default" | "compact"
compact
No
—
className
string
—
No
—
MessageAvatar
Prop
Type
Default
Required
Description
placeholder
boolean
false
No
Keep an empty avatar slot so grouped messages remain aligned.