Queue
A comprehensive queue component system for displaying message lists, todos, and collapsible task sections in AI applications.
The Queue component provides a flexible system for displaying lists of messages, todos, attachments, and collapsible sections. Perfect for showing AI workflow progress, pending tasks, message history, or any structured list of items in your application.
Installation
npx ai-elements@latest add queue
Features
- Flexible component system with composable parts
- Collapsible sections with smooth animations
- Support for completed/pending state indicators
- Built-in scroll area for long lists
- Attachment display with images and file indicators
- Hover-revealed action buttons for queue items
- TypeScript support with comprehensive type definitions
- Customizable styling with Tailwind CSS
- Responsive design with mobile-friendly interactions
- Keyboard navigation and accessibility support
- Theme-aware with automatic dark mode support
Examples
With PromptInput
Props
<Queue />
Prop
Type
<QueueSection />
Prop
Type
<QueueSectionTrigger />
Prop
Type
<QueueSectionLabel />
Prop
Type
<QueueSectionContent />
Prop
Type
<QueueList />
Prop
Type
<QueueItem />
Prop
Type
<QueueItemIndicator />
Prop
Type
<QueueItemContent />
Prop
Type
<QueueItemDescription />
Prop
Type
<QueueItemActions />
Prop
Type
<QueueItemAction />
Prop
Type
<QueueItemAttachment />
Prop
Type
<QueueItemImage />
Prop
Type
<QueueItemFile />
Prop
Type
Prompt Input
Allows a user to send a message with file attachments to a large language model. It includes a textarea, file upload capabilities, a submit button, and a dropdown for selecting the model.
Reasoning
A collapsible component that displays AI reasoning content, automatically opening during streaming and closing when finished.