Chat Composer
Chat message form with an auto-growing textarea that stops at a fixed height and scrolls, and a send button that turns into stop while a reply streams. Enter sends, Shift+Enter adds a line.
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-composernpx shadcn add @01orbital/chat-composeryarn shadcn add @01orbital/chat-composerbunx --bun shadcn add @01orbital/chat-composerPart 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-composer.tsx, as source you own and edit.
Usage
"use client"
import * as React from "react"
import { ChatComposer } from "@/components/chat/chat-composer"
export default function ChatComposerDemo() {
const [, setSent] = React.useState<string[]>([])
return (
<ChatComposer
className="w-full max-w-md"
onSend={(value) => setSent((prev) => [...prev, value])}
onStop={() => {}}
streaming={false}
/>
)
}API reference
Prop
Type
Dependencies
npm: @phosphor-icons/react, cn. The CLI installs them for you.
Registry pieces it installs with it:
input-group
More Chat
Chat Code Block
Fenced code surface for chat replies, pinned dark in both modes, with a language label and copy button. Lazy-loads Shiki for highlighting and waits until a streamed fence closes.
Chat Conversation
Scrolling chat transcript built on Message Scroller: a polite live log that follows the streaming edge, with turn, attribution, pulsing cursor and shimmering status parts.