About
Icon button that springs into a full search field with recent searches, trending chips, keyboard navigation and Esc to collapse.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Expanding Search Bar to your project and fits it to your theme.
Code
How Expanding Search Bar is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { ExpandingSearchBar } from "@/components/ui/expanding-search-bar";
export default function ExpandingSearchBarDemo() {
return (
<div className="flex h-[420px] w-full max-w-sm items-start justify-end">
<ExpandingSearchBar />
</div>
);
}








