About
Command search list with live filtering, gliding highlight, keyboard navigation and an empty state.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Command Search to your project and fits it to your theme.
Code
How Command Search is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Search from "@/components/ui/search";
export default function SearchDemo() {
return (
<div className="flex min-h-[520px] w-full items-center justify-center bg-background p-8">
<Search
placeholder="Search commands…"
label="Search commands"
items={[
"Open deployment logs",
"Invite a teammate",
"Create API key",
"Rotate webhook secret",
"View billing usage",
"Search incident history",
"Switch workspace",
"Export audit trail",
]}
emptyTitle="No results found"
emptyHint="Adjust your search to try again"
onSelect={(item) => console.log("picked:", item)}
/>
</div>
);
}








