Back to blocks
BlockDashboard / ApplicationFree

Spotlight Search Panel React component

A global search overlay for an app: one field that searches pages, people, files and actions with fuzzy matching and highlighted letters, scope tabs with live counts that Tab cycles through, grouped results driven by the keyboard, a rich preview of the highlighted result, and recent searches.

About the Spotlight Search Panel component

Spotlight Search Panel is a search-everything overlay. One field finds pages, people, files and actions, forgiving typos and skipped letters, and shows exactly which letters matched.

It is made for the keyboard: ⌘K opens it, arrow keys move, Tab switches between categories and Enter opens. A preview on the right shows the highlighted result in more detail, so people can check it is the right one before opening it.

When to use it

Use it as the global search in dashboards, internal tools, docs sites and any app with many kinds of content.

If you only need a list of commands, a command palette is lighter. Choose Spotlight when results need previews and categories.

Installation

Add the Spotlight Search Panel component to your project with the shadcn CLI. It lands in components/spotlight-search-panel.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/spotlight-search-panel

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More Dashboard / Application components

Date Range Picker with Presets
Free
Brand Color Settings Panel
Free
Record Detail Drawer
Free
Checkbox Selection Cards
Free
Account Menu Dropdown
Free
User Schedule
Free