terra vidhal

Kanban Board

Component

About

A drag-and-drop kanban board with a floating drag preview, a live drop indicator, animated card reflow, inline card creation and removal, priority tags, stacked assignees and progress bars. Cards also move with the arrow keys and Escape cancels a drag.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Kanban Board to your project and fits it to your theme.

Code

How Kanban Board is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import {
  KanbanBoard,
  type KanbanCard,
  type KanbanColumn,
} from "@/components/ui/kanban-board";

const COLUMNS: KanbanColumn[] = [
  { id: "backlog", title: "Backlog", accent: "sky", limit: 4 },
  { id: "progress", title: "In progress", accent: "violet", limit: 3 },
  { id: "review", title: "In review", accent: "amber" },
  { id: "done", title: "Shipped", accent: "emerald" },
];

const CARDS: KanbanCard[] = [
  {
    id: "card-1",
    title: "Rework the onboarding copy",
    description: "Tighten the first-run flow and remove the duplicate step.",
    columnId: "backlog",
    priority: "medium",
    tag: "Content",
    assignees: ["AM", "JR"],
  },
  {
    id: "card-2",
    title: "Add empty states to the library",
    description: "Illustration, short headline and a single primary action.",
    columnId: "backlog",
    priority: "low",
    tag: "Design",
    assignees: ["SK"],
  },
  {
    id: "card-3",
    title: "Document the billing webhooks",
    description: "Cover retries, signature checks and the sandbox flow.",
    columnId: "backlog",
    priority: "medium",
    tag: "Docs",
    assignees: ["LP", "AM", "JR"],
  },
  {
    id: "card-4",
    title: "Command menu keyboard pass",
    description: "Focus trap, arrow navigation and screen-reader labels.",
    columnId: "progress",
    priority: "high",
    tag: "Accessibility",
    assignees: ["JR"],
    progress: 68,
  },
  {
    id: "card-5",
    title: "Usage chart for the team plan",
    description: "Area chart with a goal line and a period switcher.",
    columnId: "progress",
    priority: "medium",
    tag: "Dashboard",
    assignees: ["SK", "LP"],
    progress: 42,
  },
  {
    id: "card-6",
    title: "Upload queue retry flow",
    description: "Pause, resume and retry a failed file without losing order.",
    columnId: "review",
    priority: "high",
    tag: "Frontend",
    assignees: ["AM"],
    progress: 90,
  },
  {
    id: "card-7",
    title: "Pricing interval toggle",
    description: "Monthly and yearly prices with a savings note.",
    columnId: "review",
    priority: "medium",
    tag: "Growth",
    assignees: ["LP", "SK"],
    progress: 100,
  },
  {
    id: "card-8",
    title: "Reduce motion audit",
    description: "Every animation respects the system preference.",
    columnId: "done",
    priority: "low",
    tag: "QA",
    assignees: ["JR"],
  },
  {
    id: "card-9",
    title: "Guest checkout",
    description: "One page, two fields and a clear confirmation state.",
    columnId: "done",
    priority: "high",
    tag: "Checkout",
    assignees: ["AM", "LP", "SK"],
  },
];

export default function KanbanBoardDemo() {
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-background px-4 py-10 sm:px-6">
      <KanbanBoard
        columns={COLUMNS}
        cards={CARDS}
        title="Launch board"
        description="Sprint 12 · everything the release needs, from copy to checkout."
      />
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Topographic Lines

    Topographic Lines

    6
  • Gravity Stars Background

    Gravity Stars Background

    6
  • Spotlight Card

    Spotlight Card

    4
  • Marquee

    Marquee

    3
  • Glyph Field

    Glyph Field

    2
  • Firework Burst

    Firework Burst

    1
  • Aurora Bubbles

    Aurora Bubbles

    1
  • Notification Center

    Notification Center

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.