Chatbot

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.

  • How do I set up the project?
  • What is the roadmap for Q4?
  • Update the default logo to this png.
    setup-guide.png
  • Please generate a changelog.
  • Add dark mode support.
  • Optimize database queries.
  • Set up CI/CD pipeline.
  • Write project documentation
    Complete the README and API docs
  • Implement authentication
  • Fix bug #42
    Resolve crash on settings page
  • Refactor queue logic
    Unify queue and todo state management
  • Add unit tests
    Increase test coverage for hooks

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

  • Write project documentation
    Complete the README and API docs
  • Implement authentication
  • Fix bug #42
    Resolve crash on settings page
  • Refactor queue logic
    Unify queue and todo state management
  • Add unit tests
    Increase test coverage for hooks
  • 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