Filter Bar
Search and filter toolbar.
import { Input } from "@/components/ui/input";import { Button } from "@/components/ui/button";import { FilterBar } from "@/registry/new-york/items/manpowerhub-filter-bar/components/filter-bar";import { Search } from "lucide-react";export function ManpowerhubFilterBarBasic() { return ( <FilterBar className="p-4"> <div className="relative max-w-[280px] flex-1"> <Search className="absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2 text-[var(--text-3)]" /> <Input className="pl-8" placeholder="Search name, ID, site…" /> </div> <Button variant="outline" size="sm"> Filters </Button> </FilterBar> );}Installation
Section titled “Installation”This installation provides support for all official Shadcn icon libraries. The component is otherwise identical to the non-experimental installation.
Icon support is experimental and may not be fully stable since it uses internal Shadcn APIs.
This component relies on other items which must be installed first.
Copy and paste the following code into your project.
components/ui/filter-bar.tsx
import * as React from "react";
import { cn } from "@/lib/utils";
function FilterBar({ className, ...props }: React.ComponentProps<"div">) { return ( <div data-slot="filter-bar" className={cn("mb-3.5 flex flex-wrap items-center gap-1.75", className)} {...props} /> );}
export { FilterBar };Update the import paths to match your project setup.
Install the ManpowerHub theme first, then add this filter bar:
npx shadcn@latest add @woxcn/manpowerhub-filter-bar