Vercel

Task

AI chats 45

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

    294
  • Message

    Message

    51
  • Conversation

    Conversation

    42
  • Inline Citation

    Inline Citation

    40
  • Loader

    Loader

    26
  • Sources

    Sources

    22
  • Code Block

    Code Block

    13
  • Suggestion

    Suggestion

    9

More in AI chats

View all
  • AI Actions

    AI Actions

    351
  • Aquarium Prompt

    Aquarium Prompt

    113
  • Agent Chat

    Agent Chat

    21
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    60
  • Research Report

    Research Report

    7
  • Tool Web Fetch

    Tool Web Fetch

    4
  • Color Picker

    Color Picker

    201
  • Suggestions

    Suggestions

    40