Chat App
A complete assistant workspace in one file: thread list, streamed replies with a tool call, suggestion chips, a growing composer with stop, and a drawer on mobile. Connect `respond` to your model.
- Category: AI
- Licence: Charcoal UI Pro
- Built with: React 19, Tailwind CSS 4, Motion
- Dependencies: motion, clsx, tailwind-merge
Examples
Chat App
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
assistant | string | "Assistant" | |
threads | { id; title; messages }[] | — | |
respond | (prompt: string) => Promise<{ text: string; tool?: { name: string; seconds: number } }> | — | |
speed | number | 28 | Words per second when streaming. |
suggestions | string[] | — |
About Chat App
Chat App is a full assistant workspace: a thread list, streamed replies with a tool call, suggestion chips, a composer that grows with your text and a stop button, and a drawer on mobile. Connect the respond function to your model and ship.
Chat App is an AI interface component for React 19, styled with Tailwind CSS 4 and animated with Motion. It drops into Next.js, Vite, Remix or Astro through the shadcn CLI as a single file you own.
When to use Chat App
- Shipping an AI assistant quickly.
- Internal tools on top of an LLM.
- Prototypes and demos for investors.
- A reference layout to customise.
How it works
Replies stream token by token into a scroller that follows the text. The composer is a textarea that grows to a limit, Enter sends and Shift+Enter adds a line, and the thread list becomes a drawer below the medium breakpoint.
Streaming and status changes go through live regions, every action is a labelled button that works from the keyboard, and decorative motion stops for people who prefer reduced motion. With prefers-reduced-motion on, it holds still or settles instantly instead of animating.
Customizing Chat App
Every prop is documented in the API reference above with its type and default. The ones you will reach for first are listed here.
The Customize panel next to the preview lets you change assistant, speed live, and the Code tab updates to match, so the snippet you copy already carries your values.
- assistant (string, default "Assistant").
- threads ({ id; title; messages }[]).
- respond.
- speed (number, default 28): Words per second when streaming.
- suggestions (string[]).
Goes well with Chat App
These ai pieces share its tokens and motion language, so they sit together on one page without clashing.
- Typing Indicator: A React typing indicator: a bubble with rippling dots that tells screen readers who is typing
- Thinking Orb: A React AI thinking orb with nine motions for nine kinds of busy
- AI Prompt Input: An animated React AI chat input: growing field, attachments, model picker and a stop button
- Voice Input: A React voice input: the mic expands into a live waveform with a timer and cancel
- Message Scroller: A React chat viewport that follows streaming text and lets go when you scroll up
Install Chat App
npx shadcn@latest add @charcoal/chat-appChat App is part of Charcoal UI Pro. One seat unlocks all 393 Pro components, 112 landing-page sections and 100 full templates, for every personal and client project, with updates included. Add the @charcoal registry once with your access token, then the command above copies chat-app.tsx into components/ui and installs clsx, tailwind-merge.
You own the file you install: no runtime package, no lock-in, nothing to keep in sync. Change it however your product needs.
See Charcoal UI Pro pricing · Pro setup
Frequently asked questions
- How do I install Chat App?
- Chat App is part of Charcoal UI Pro. Add the @charcoal registry to components.json with your access token, then run npx shadcn@latest add @charcoal/chat-app. It copies chat-app.tsx into components/ui and installs motion, clsx, tailwind-merge.
- Is Chat App free for commercial use?
- Chat App needs a Charcoal UI Pro seat, monthly or a one-time lifetime price. A seat covers unlimited personal and commercial projects, including client work, and every future Pro component.
- Does Chat App work with Next.js?
- Yes. It is a client component for React 19 styled with Tailwind CSS 4, so it works in the Next.js App Router and Pages Router, Vite, Remix and Astro.
- Can an AI coding agent install Chat App?
- Yes. Connect the Charcoal UI MCP server (https://charcoalui.com/mcp) to Claude Code, Cursor or any MCP client; get_component returns Chat App's props and get_install_command returns the exact command.