Message Queue
Pending user turns that remain visible, removable, and immediately sendable while an agent is busy.
Loading component preview…
Installation
Add the component source directly to your project.
pnpm dlx shadcn@latest add https://pastaui.com/r/message-queue.jsonAPI reference
Message Queue
| Prop | Type | Default | Description |
|---|---|---|---|
items | QueuedMessage[] | — | Provides the pending turns and upload counts. |
onRemove | (id: string) => void | — | Removes a queued turn. |
onSendNow | (id: string) => void | — | Handles the Steer action to send a queued turn immediately. |
onReorder | (items: QueuedMessage[]) => void | — | Receives the reordered queue after dragging a side handle or pressing its arrow keys. |
onMoveToTop | (id: string) => void | — | Enables the Move to top action in each message menu. |