f0rextasy

Search Filter Bar

Component

About

A combined search input, sort toggle group and animated filter chip toolbar for filtering lists or tables.

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

Code

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

Usage.tsx

"use client";

import * as React from "react";
import { SearchFilterBar } from "@/components/ui/search-filter-bar";

export default function SearchFilterBarSortDemo() {
  const [activeSort, setActiveSort] = React.useState("newest");

  return (
    <div className="flex w-full max-w-2xl items-center justify-center bg-background p-6">
      <SearchFilterBar
        placeholder="Search orders…"
        sorts={[
          { id: "newest", label: "Newest" },
          { id: "price", label: "Price" },
          { id: "popular", label: "Popular" },
        ]}
        activeSort={activeSort}
        onSortChange={setActiveSort}
        filters={[
          { id: "in-stock", label: "In Stock", active: true },
          { id: "sale", label: "On Sale" },
          { id: "new", label: "New" },
        ]}
      />
    </div>
  );
}

More by f0rextasy

View all
  • Newsletter Signup Card

    Newsletter Signup Card

    21
  • Stamp Seal

    Stamp Seal

    19
  • Network Graph

    Network Graph

    18
  • Board Checklist

    Board Checklist

    17
  • Navbar

    Navbar

    15
  • Running Order Timeline

    Running Order Timeline

    13
  • Milestone Chart

    Milestone Chart

    13
  • Empty State Card

    Empty State Card

    9