Preet Suthar

Task Filters

Component 57

About

Filter and search tasks by status, priority, assignees, projects, and tags with a live count of active filters and a clear-all action.

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

Code

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

Usage.tsx

"use client";

import TaskFilters from "@/components/ui/task-filters";

export default function Default() {
  return (
    <div className="mx-auto w-full max-w-2xl p-6">
      <TaskFilters
        availableAssignees={[
          { id: "1", name: "Alex Morgan" },
          { id: "2", name: "Jamie Lee" },
          { id: "3", name: "Taylor Reed" },
        ]}
        availableProjects={[
          { id: "p1", name: "Website Redesign" },
          { id: "p2", name: "Mobile App" },
        ]}
        availableTags={["design", "bug", "feature"]}
        onFilterChange={(filter) => console.log(filter)}
      />
    </div>
  );
}

Dependencies

More by Preet Suthar

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • Shining Text

    Shining Text

    1.5K
  • Magic Text

    Magic Text

    845
  • Hero 2

    Hero 2

    818
  • Toolbar

    Toolbar

    816
  • Typewriter Text

    Typewriter Text

    768
  • AI Chat Input

    AI Chat Input

    733
  • Full Screen Signup

    Full Screen Signup

    726

Explore more

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