Components › Blocks

Task list

A checklist with progress, priorities, add and delete. Done tasks strike through.

Installation

npx plankui@latest add task-list

Usage

import { TaskList } from "@/components/ui/task-list";

<TaskList title="Launch week" tasks={[{ id: "1", title: "Write the changelog", priority: "high" }]} />

API reference

PropTypeDefaultDescription
tasks{ id; title; done?; meta?; priority? }[]requiredThe tasks.
onTasksChange(tasks) => voidPass to control the list yourself.
addablebooleantrueShow the add field.

View the source on GitHub