Vercel

Task

AI chats 43

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

    293
  • Message

    Message

    49
  • Conversation

    Conversation

    42
  • Inline Citation

    Inline Citation

    38
  • Loader

    Loader

    25
  • Sources

    Sources

    21
  • Code Block

    Code Block

    13
  • Suggestion

    Suggestion

    8

More in AI chats

View all
  • AI Actions

    AI Actions

    342
  • Aquarium Prompt

    Aquarium Prompt

    65
  • Commit

    Commit

    35
  • Agent Chat

    Agent Chat

    19
  • Cost Meter

    Cost Meter

    50
  • Color Picker

    Color Picker

    175
  • Research Report

    Research Report

    4
  • Streaming Text

    Streaming Text

    26