Vercel

Task

AI chats 40

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

    290
  • Message

    Message

    48
  • Conversation

    Conversation

    42
  • Inline Citation

    Inline Citation

    36
  • Loader

    Loader

    22
  • Sources

    Sources

    20
  • Code Block

    Code Block

    12
  • Suggestion

    Suggestion

    8

More in AI chats

View all
  • AI Actions

    AI Actions

    317
  • Color Picker

    Color Picker

    73
  • Prompt with Model Picker

    Prompt with Model Picker

    2
  • Agent Chat

    Agent Chat

    17
  • Approval Card

    Approval Card

    12
  • System Message

    System Message

    53
  • AI Task List

    AI Task List

    158
  • Quota Banner

    Quota Banner

    20