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>
);
}








