Skip to content

Search Results

Built around the state a search page is in most of the time — empty — so recent queries lead and the facets sit in a sidebar that survives growing to twelve.

4 blocks47 lineslucide-reactAdded 9 Sept 2026

What's included

  • app/search-page.tsx
  • 4 blocks it is built from, installed with it
  • Needs lucide-react

Works with

  • React
  • Next.js
  • Tailwind CSS
  • TypeScript

npx hoverlab add search-page

Or over MCP, from your editor's agent — no account needed.

License

Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.

Was this useful?

Preview

Pick up where you left off

An empty search box is the most common state of a search box, and it is usually blank. Recent queries are the cheapest useful thing to put there, and the result count is what makes them worth re-running.

Active filters and sorting

12 of 840 projects

  • Workspace:Northwind
  • Status:Active
  • Owner:Priya Raman
  • Updated:Last 30 days
  • Tag:billing
5 results
No luck? Ask support — a human replies within a working day.

The real page, rendered in your current theme — every section below is a live block, not a screenshot.

Built from

All blocks
  1. Recent Search ListThe empty state of a search box, filled with the searches that are worth repeating and the ones worth saving.
  2. Applied Filters BarThe strip above a result set that answers "why am I only seeing four things" — every active constraint as a removable chip, with the excluded count beside it.
  3. Faceted Refinement PanelFaceted search with result counts on every option, zero-count options kept visible and disabled so the list stays stable, and a note explaining why the counts do not sum.
  4. Grouped Search ResultsResults grouped by section with visible breadcrumb paths and <mark>-highlighted matches — users recognise where a result lives faster than they read its snippet.

Only want one section? Open it and copy that block instead — browse Command & Search.

Shipped in these templates

Want the whole project rather than this one screen? A template ships every route, the theme tokens and the layout.

Source

app/search-page.tsx
/**
 * A full search screen, including the state it is in most of the time.
 *
 * Search pages are designed around results and then spend most of their
 * life showing none — the visitor arrives with an empty box. So the recent
 * queries sit at the top, which is the only part of this page that is
 * useful before anything is typed, and the applied-filter bar and results
 * fill in underneath once there is a query.
 *
 * The obvious wrong answer is a hero search box on an empty canvas. It
 * looks clean in a mockup and it is the least useful arrangement in
 * practice, because it discards the one piece of context the product
 * already has: what this person searched last time.
 *
 * Facets are in a sidebar rather than above the results. A horizontal
 * filter row is fine for four facets and unusable at twelve, and the
 * direction a real product grows is always toward twelve.
 */

import * as React from 'react'
import { RecentSearchList } from '@/components/recent-search-list'
import { AppliedFiltersBar } from '@/components/applied-filters-bar'
import { SearchFacetPanel } from '@/components/search-facet-panel'
import { SearchResultsPanel } from '@/components/search-results-panel'

export default function SearchPage() {
  return (
    <main className="min-h-screen bg-background text-foreground">
      {/* The empty state, which is the common state. */}
      <RecentSearchList />

      <AppliedFiltersBar />

      {/*
        Sidebar and results as one grid rather than two stacked sections,
        so the facets stay beside the results on a wide screen and fall
        above them on a narrow one — which is the correct order on mobile,
        where filtering happens before scrolling.
      */}
      <div className="mx-auto grid w-full max-w-6xl gap-6 px-6 pb-16 lg:grid-cols-[280px_1fr]">
        <SearchFacetPanel />
        <SearchResultsPanel />
      </div>
    </main>
  )
}

How to use it

  1. 1. Copy each of the 4 blocks above into components/ — each block page has its own copy button.
  2. 2. Drop this file at app/search-page.tsx. The imports already point at @/components/…, so they resolve with no edits.
  3. 3. Delete the sections you do not want. Every block takes props, so the copy changes without the layout moving.

For AI

The component, its props, the design tokens it expects and the command that installs it — as one prompt. Paste it into Claude, Cursor, v0 or ChatGPT and what they build around it will match the rest of the catalog instead of inventing its own system.

See the prompt

More App Screens

Open the full page for this page

Dashboard Overview

The screen an app opens on: shell, header, KPI row, chart and activity feed — numbers first, shape second, changes last.

App Screens5 blocks47 lines
Open the full page for this page

AI Assistant Screen

An agent working inside a real app: a transcript down the middle — reasoning, answer, then the one card that can act — with what it may read and what it noticed demoted to a rail.

App Screens7 blocks110 lines
Open the full page for this page

Project Board

A kanban board inside the app shell, with tabs that admit the board is one view among several and a header whose primary action is creating work.

App Screens3 blocks42 lines
Open the full page for this page

Customer List Screen

The canonical CRUD list — header, toolbar, sortable table and pagination framed as one panel instead of three stacked cards.

App Screens5 blocks37 lines
Open the full page for this page

Onboarding

A wizard for the session someone finishes and a checklist for the one they do not, with the only genuinely blocking step in front of both.

App Screens3 blocks45 lines
Open the full page for this page

Agent Run Detail

One run opened up in the order you would debug it — intent, actions, the retries that are invisible in both, then cost.

App Screens4 blocks49 lines
Open the full page for this page

Approvals Inbox

The queue, the same queue sorted by how long things have waited, and the policy that decided both — with the policy last so it is not scrolled past forever.

App Screens3 blocks45 lines
Open the full page for this page

Assistant Chat

The blank thread answered with real starter prompts, the model picker with the three numbers the choice turns on, and the four surfaces a session grows into — attachments, branches, canvas, threads.

App Screens6 blocks68 lines
Open the full page for this page

Agent Run Inspector

The three states an agent screen usually omits: the wait before the first token, the trace after something broke with retries costed in the open, and the diff it wants a person to accept.

App Screens5 blocks61 lines
Open the full page for this page

Retrieval Console

Why the answer said what it said: what is connected, how stale it is, what the query was allowed to see, what fitted in the window and what fell out — plus the failed-search state a debugging tool is most needed in.

App Screens7 blocks66 lines
Open the full page for this page

AI Editor

Five ways to reach a model without the cursor leaving the sentence — slash menu, inline completion, selection toolbar, action menu, property inspector — and the two surfaces that say where the answer came from.

App Screens7 blocks64 lines
Open the full page for this page

Records Table

A table after real people have used it — columns reordered from the keyboard, a selection bar that asks page-or-all, subtotals that survive collapsing, cells edited in place, and the empty state its own filters produced.

App Screens8 blocks71 lines
Open the full page for this page

Analytics

The saved view and the comparison window first, because every figure below depends on both — then six charts, none of which load a charting library.

App Screens8 blocks68 lines
Open the full page for this page

Alerting

Thresholds with how often each has actually fired, what that produced, where it went — and the digest settings that exist because of the answer.

App Screens5 blocks54 lines
Open the full page for this page

Import Data

The flow between an empty product and a useful one, in the order it goes wrong: sample data offered with equal weight, a file, a URL, the column mapping everything stalls on, and an upload that survives the connection dropping.

App Screens7 blocks64 lines
Open the full page for this page

Account Setup

A profile form where the role options state what they actually change, the avatar crop works from the keyboard, and a navigation guard names the fields it is about to throw away.

App Screens4 blocks53 lines
Open the full page for this page

App Shell

The furniture that is on every screen and belongs to none — navbar, mobile drawer, command palette, shortcut sheet, header search, scope switcher, and the two shapes a detail view takes without losing the list.

App Screens8 blocks68 lines
Open the full page for this page

Workspace Activity

Backwards from now and forwards from it on one screen — a day-grouped timeline, a month grid where a busy Tuesday never changes the row height, and the state both are in on day one.

App Screens3 blocks51 lines
Open the full page for this page

First Run

What the product looks like while onboarding happens: a tour step anchored to the control it explains, the skeletons of the slowest load it will ever do, and the checklist that outlives both.

App Screens3 blocks50 lines