# Search Results Highlight

Results list of a documentation search engine with the term highlighted in title, summary and body snippet.

- id: `search-results-highlight`
- Page: https://agentic-ui-kit.com/components/search-results-highlight
- Live preview: https://agentic-ui-kit.com/live/component/search-results-highlight

## Install

```bash
agentic-ui add search-results-highlight
npx shadcn@4.17.0 add @agentic-ui/search-results-highlight
```

## Metadata

- **Level:** block
- **Category:** block
- **Installable in:** Radix UI (registry variant new-york), Base UI (registry variant base-vega)
- **Capabilities:** term-marking, multi-term-and-phrase-modes, case-and-whole-word-toggles, diacritics-folding, body-snippets-with-context, match-counter, match-navigation, per-result-match-badges, only-matching-filter, keyboard-navigation, live-region-announcements, empty-error-states, inline-highlight-text-primitive
- **Intents:** explore-detail, navigate, manage-collection
- **Suits domains:** saas, knowledge, devtools, project-management, crm, ecommerce, operations
- **Interaction:** live-highlight, match-step-navigation, toggle-case-whole-word-phrase, only-matching-filter, keyboard-result-focus, select-result, clear-and-reset-query, retry-on-error
- **Screen role:** management
- **Density:** medium
- **Dark mode:** yes
- **Use it for:** Results list of a documentation search engine with the term highlighted in title, summary and body snippet, Search in an issue tracker with a match counter and previous/next navigation between matches, Results of a product or contact catalog where the user switches between partial match, whole word and exact phrase, Inline highlighting (HighlightText) of the searched term inside tables, cards or command palettes
- **Avoid when:** Semantic or vector searches where the result text does not literally contain the queried term, Syntax highlighting of code or user-defined regular expressions, which require a different tokenizer, Lists of thousands of results rendered without virtualization; the block highlights what is visible, it does not paginate
- **Preserve when adapting:** highlight-engine, overlap-resolution, global-match-indexing, live-region-contract, keyboard-scheme
- **Replace when adapting:** result-item-shape, snippet-window-sizes, labels-and-copy, mark-classnames, mock-data
- **Adaptation effort:** low
- **Coupling:** low
- **Quality score:** 8.9/10
- **Quality breakdown:** visual 8/10, responsive 9/10, accessibility 9/10, code 9/10
- **Uses primitives:** input, button, badge, switch, label, separator
- **npm dependencies:** lucide-react
- **Motion:** profile subtle, library css, reduced-motion fallback yes
- **npm dependencies (registry):** lucide-react@0.577.0
- **Registry dependencies:** lib-primitives
