Components
Each one installs into your app as source with the shadcn CLI, along with what it needs. Open one to try it, read its code, and copy the command.
Conversation
- ThreadthreadA whole conversation from one hook: header, messages, activity and the composer.
- Message listmessage-listThe conversation, following replies as they stream and letting go when you scroll up.
- MessagemessageOne message and its parts: text, reasoning, files, tool calls and interactions.
- ComposercomposerThe message box: attachments, / commands, @mentions, dictation, queued sends and stop.
- Command palettecommand-paletteEvery slash command in a searchable dialog. The thread adds it when you pass commands.
- Agent pickeragent-pickerChooses which agent the thread talks to, from a list your app passes in.
- Session listsession-listPast conversations grouped by day, with new and delete. The page layout's sidebar.
Parts
- Tool calltoolA call's state, its input as it streams, its result or error, and its approval.
- InteractioninteractionApprovals, questions, free-text answers and sign-ins, answered in place.
- MarkdownmarkdownReplies as Markdown, safe to render while they stream.
- StatusstatusWhat the agent is doing now, the latest error, and the empty state.
Layouts
Foundations