āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/ai-elements/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.
npx ai-elements@latest add queue
import {
Queue,
QueueSection,
QueueSectionTrigger,
QueueSectionLabel,
QueueSectionContent,
QueueList,
QueueItem,
QueueItemIndicator,
QueueItemContent,
} from '@/components/ai-elements/queue';
<Queue>
<QueueSection>
<QueueSectionTrigger>
<QueueSectionLabel count={3} label="Tasks" />
</QueueSectionTrigger>
<QueueSectionContent>
<QueueList>
<QueueItem>
<QueueItemIndicator />
<QueueItemContent>Analyze user requirements</QueueItemContent>
</QueueItem>
</QueueList>
</QueueSectionContent>
</QueueSection>
</Queue>
The Queue component can be integrated with PromptInput to show pending tasks or messages.
| Prop | Type | | ...props? | React.ComponentProps<"div"> |
| Prop | Type | | defaultOpen? | boolean | | ...props? | React.ComponentProps<typeof Collapsible> |
| Prop | Type | | ...props? | React.ComponentProps<"button"> |
| Prop | Type | | label? | string | | count? | number | | icon? | React.ReactNode | | ...props? | React.ComponentProps<"span"> |
| Prop | Type | | ...props? | React.ComponentProps<typeof CollapsibleContent> |
| Prop | Type | | ...props? | React.ComponentProps<typeof ScrollArea> |
| Prop | Type | | ...props? | React.ComponentProps<"div"> |
| Prop | Type | | completed? | boolean | | ...props? | React.ComponentProps<"span"> |
| Prop | Type | | completed? | boolean | | ...props? | React.ComponentProps<"span"> |
| Prop | Type | | completed? | boolean | | ...props? | React.ComponentProps<"div"> |
| Prop | Type | | ...props? | React.ComponentProps<"div"> |
| Prop | Type | | ...props? | Omit<React.ComponentProps<typeof Button>, "variant" | "size"> |
| Prop | Type | | ...props? | React.ComponentProps<"div"> |
| Prop | Type | | ...props? | React.ComponentProps<"img"> |
| Prop | Type | | ...props? | React.ComponentProps<"span"> |
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā