Shehryar Ali

Filter Table

Component 3

About

Task table with status filter chips and counts that reorganise rows with smooth transitions.

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

Code

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

Usage.tsx

import FilterTable from "@/components/ui/filter-table";

export default function FilterTableDemo() {
  return (
    <div className="flex min-h-[520px] w-full items-center justify-center bg-background p-8">
      <FilterTable
        columns={{ title: "Task", date: "Due", status: "Status", owner: "Owner" }}
        statuses={[
          { key: "todo", label: "To do", tone: "amber" },
          { key: "progress", label: "In progress", tone: "sky" },
          { key: "done", label: "Completed", tone: "emerald" },
        ]}
        rows={[
          { id: "t1", title: "Migrate billing webhooks", date: "Dec 03", status: "todo", owner: "Priya Raman" },
          { id: "t2", title: "Fix SSO redirect loop", date: "Nov 28", status: "progress", owner: "Marcus Lee" },
          { id: "t3", title: "Rotate staging API keys", date: "Dec 09", status: "todo", owner: "Elena Novak" },
          { id: "t4", title: "Ship onboarding checklist", date: "Nov 21", status: "progress", owner: "Jonah Brooks" },
          { id: "t5", title: "Archive legacy dashboards", date: "Nov 14", status: "done", owner: "Aisha Karim" },
          { id: "t6", title: "Draft Q1 pricing update", date: "Dec 12", status: "todo", owner: "Tomás Vidal" },
        ]}
      />
    </div>
  );
}

More by Shehryar Ali

View all
  • Loading State

    Loading State

    20
  • Insight Cards

    Insight Cards

    10
  • Streaming Text

    Streaming Text

    9
  • Flowchart

    Flowchart

    5
  • Murmur Ember Silk

    Murmur Ember Silk

    3
  • Thinking State

    Thinking State

    2
  • Selection Actions

    Selection Actions

    2
  • Murmur Ember Tide

    Murmur Ember Tide

    1