Vercel

Task

AI chats 46

About

Here is Task component

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Task to your project and fits it to your theme.

Code

How Task is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import {
  Task,
  TaskContent,
  TaskItem,
  TaskItemFile,
  TaskTrigger,
} from '@/components/ui/task';


export default function DemoOne() {
  return (
    <div className="flex min-h-screen flex-col items-center justify-center gap-4 bg-background p-4">

      {/* Пример с другим контентом */}
      <Task className="w-full max-w-md">
        <TaskTrigger title="Process incoming data" />
        <TaskContent>
          <TaskItem>
            Parse user data from <TaskItemFile>users.csv</TaskItemFile>
          </TaskItem>
          <TaskItem>
            Analyze configuration in <TaskItemFile>config.yaml</TaskItemFile>
          </TaskItem>
        </TaskContent>
      </Task>

    </div>
  );
}

Dependencies

More by Vercel

View all
  • Announcement

    Announcement

    297
  • Message

    Message

    54
  • Conversation

    Conversation

    44
  • Inline Citation

    Inline Citation

    41
  • Loader

    Loader

    29
  • Sources

    Sources

    23
  • Code Block

    Code Block

    15
  • Flow Controls

    Flow Controls

    10

More in AI chats

View all
  • Agent Chat

    Agent Chat

    21
  • AI Actions

    AI Actions

    372
  • AI Suggestions

    AI Suggestions

    27
  • Interactive LLM Token & Context Window Visualizer

    Interactive LLM Token & Context Window Visualizer

    30
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    36
  • Aquarium Prompt

    Aquarium Prompt

    219
  • Message Parts

    Message Parts

    10
  • AI Chat Composer

    AI Chat Composer

    21