Skip to content
Browse components

TaskColumn

One column of a task board: a card per task with its chips, assignees, due date and progress.

In review

2
  • HighIn reviewDocs site

    Pricing page copy pass

    Tighten plan names before launch

  • DoneOnboarding

    Invite flow empty states

    Cover zero-team and expired-link cases

Installation

Run this in a project that has a components.json. It adds one file, components/tenor-ui/task-column.tsx, and no packages.

pnpm dlx shadcn@latest add https://tenor.design/r/task-column.json

No components.json? Fetch the file. It works in any React project.

curl --create-dirs -o src/components/tenor-ui/task-column.tsx https://tenor.design/r/task-column.tsx

Usage

Every prop is optional. With none, it renders the content you see above.

<TaskColumn />
"use client"; import { TaskColumn, type TaskColumnTask } from "@/components/tenor-ui/task-column"; const tasks: TaskColumnTask[] = [ { title: "Checkout address form", detail: "Validate postcodes as the customer types", chips: [ { label: "High", icon: "flag", color: "#FF7A13" }, { label: "Storefront", icon: "browser", color: "#2CC653" }, ], people: [ { label: "AN", color: "#3B78FA" }, { label: "DW", color: "#D477EF" }, ], comments: 3, due: "Fri Dec 12", progress: 25, }, { title: "Order confirmation email", detail: "Add the delivery window and a tracking link", chips: [{ label: "Done", icon: "check", color: "#2CC653" }], people: [{ label: "SO", color: "#FF7A13" }], comments: 8, due: "Today", progress: 100, }, ]; export function InProgressColumn({ onAddTask, onMore }: { onAddTask: () => void; onMore: () => void }) { return <TaskColumn title="In progress" tasks={tasks} onAddTask={onAddTask} onMore={onMore} />; }

Props

PropTypeDefaultWhat it does
titlestring"In review"Column heading.
tasksreadonly TaskColumnTask[]taskColumnTasksTasks in the column, top first. The count beside the heading is their number.
addLabelstring"Add task"Text of the row under the cards, and the name of the header's add button.
onAddTask() => voidNoneCalled when either add button is pressed.
onMore() => voidNoneCalled when the header's more button is pressed.
theme"dark" | "light""dark"Colour palette.

It also takes every attribute of its root element, such as className and style.

Theming

Set any of these CSS variables on the component or on an ancestor. Each falls back to the look shown here.

  • --tui-surface
  • --tui-stroke
  • --tui-text
  • --tui-muted
  • --tui-card
  • --tui-card-hover
  • --tui-chip
  • --tui-rule
  • --tui-icon
  • --tui-done
  • --tui-on-avatar
  • --tui-button-hover
  • --tui-font-sans
  • --tui-font-mono