Composer
Writes the next message, or a question to an agent: the words, the people, agents, files and commands they name, any files that go with them, and the press that sends them, with a reason whenever it cannot send yet and a Stop while an answer streams.
Examples
States
Press Send. The first try fails, and the next goes through.
Press Send. The server answers after 2 seconds.
Usage
Use it when
- Writing the next message in a
Thread. - Asking an agent a question that can name people, agents and files, run a command, and stream its answer.
Use something else when
- A one-line search or filter. Use Input instead, or CommandPalette.
- A long form field such as a description. Use Textarea instead, inside a Field.
Rules
General
Content
Avoid
Limits
Install
npx shadcn@latest add https://kaanarici.com/r/cobalt/composer.jsonimport { Composer, ComposerAttach, ComposerAttachments, ComposerInput, ComposerSend, useDraft } from "@/components/cobalt/ui/composer"