# Queue URL: /components/queue --- title: Queue description: A comprehensive queue component system for displaying message lists, todos, and collapsible task sections in AI applications. path: elements/components/queue --- 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 ## Usage ```tsx import { Queue, QueueSection, QueueSectionTrigger, QueueSectionLabel, QueueSectionContent, QueueList, QueueItem, QueueItemIndicator, QueueItemContent, } from "@/components/ai-elements/queue"; ``` ```tsx Analyze user requirements ``` ## 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 ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` , "variant" | "size">', }, }} /> ### `` ', }, }} /> ### `` ', }, }} /> ### `` ', }, }} />