Shehryar Ali

Command Search

Component

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

More by Shehryar Ali

View all
  • Loading State

    Loading State

    19
  • Insight Cards

    Insight Cards

    9
  • Streaming Text

    Streaming Text

    9
  • Murmur Ember Silk

    Murmur Ember Silk

    3
  • Murmur Ember Tide

    Murmur Ember Tide

    1
  • Granite Sky Aurora

    Granite Sky Aurora

    1
  • Prompt Bar

    Prompt Bar

    1
  • Records Table

    Records Table