Chat Message
A single chat turn: the user's message in a muted bubble aligned to the end, the assistant's as bare text at the start. Built on Message and Bubble.
The source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
Installation
pnpm dlx shadcn add @01orbital/chat-messagenpx shadcn add @01orbital/chat-messageyarn shadcn add @01orbital/chat-messagebunx --bun shadcn add @01orbital/chat-messagePart of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).
It lands at components/chat/chat-message.tsx, as source you own and edit.
Usage
import { ChatMessage } from "@/components/chat/chat-message"
// Every word on the page. Change copy here, not in the markup.
const COPY = {
body: "My words sit in a filled bubble, on the right.",
body2:
"The assistant answers in bare prose on the ground, using the full column — no bubble, no border. The whitespace is the boundary.",
} as const
export default function ChatMessageDemo() {
return (
<div className="flex max-w-md flex-col gap-10">
<ChatMessage variant="mine">{COPY.body}</ChatMessage>
<ChatMessage variant="theirs">{COPY.body2}</ChatMessage>
</div>
)
}Examples
01
chat-message-demo
02
chat-message-mine
03
chat-message-theirs
04
chat-message-thread
05
chat-message-with-code
06
chat-message-long-reply
API reference
Prop
Type
It also accepts the props of the Base UI part it wraps, and the HTML attributes of the element it renders.
Dependencies
npm: cn. The CLI installs them for you.
Registry pieces it installs with it:
bubblemessage
More Chat
Chat Inline Component Card
Frame for a live registry component inside a chat reply: a mono caption with category, name and open link over a scaled-down preview. Includes helpers for [[name]] citations.
Chat Response
Renders an assistant's streamed text, splitting fenced code into Chat Code Blocks and setting inline backtick code in mono, with a slot for a cursor at the end.