Search Autocomplete
Global search in a SaaS with suggestions grouped by dashboards, documents, people and commands.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this block
What it's for
- Global search in a SaaS with suggestions grouped by dashboards, documents, people and commands.
- E-commerce catalog search with term highlighting, SKU matching and spelling correction.
- Knowledge base search field against a remote index with debounce and server-side «did you mean».
For the field must select a form value with chips or multi-selection, use Form Async Combobox.
Includes
- Ranked suggestions
- Match highlighting
- Diacritic insensitive matching
- Did you mean correction
- Kind grouping
- Local or async source
- Debounce and abort
- Loading state
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
agentic-ui add search-autocompletenpx shadcn@4.17.0 add @agentic-ui/search-autocompleteUsed in
A standalone component: drop it into any screen.
- Type
- Block
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- Sample data
- Ships with sample data in its own files; replace it with your own.
- npm packages
lucide-react- Registry dependencies
lib-primitives- Files
6 files
- components/agentic-ui/search-autocomplete/index.tsx
- components/agentic-ui/search-autocomplete/fixtures.ts
- components/agentic-ui/search-autocomplete/match.ts
- components/agentic-ui/search-autocomplete/types.ts
- components/agentic-ui/search-autocomplete/use-autocomplete.ts
- components/agentic-ui/search-autocomplete/highlight.tsx
Related components
Search Faceted Sidebar
Multi-faceted filtering side panel for a product catalog with counts by category, brands, price ranges and ratings.
Details and live previewSearch Recently Viewed
«recently viewed» panel on a SaaS home to return to opened documents, dashboards or people.
Details and live previewSearch Results Highlight
Results list of a documentation search engine with the term highlighted in title, summary and body snippet.
Details and live previewSearch Saved Views
Saved views bar in an issue or project tracker to switch between active tasks and backlog.
Details and live preview