Wiki Search Results

Ordered list of search hits: article title link + plain-text excerpt (~180 chars). Zero-results state with a prompt to try different terms. Backed by the Tantivy JSON-RPC endpoint at /mcp (see research note).

Live previewrendered from recipe via {tokens} resolution
with-results

{{count}} result{{#plural}}s{{/plural}} for "{{query}}"

  1. {{snippet}}

Count + ordered list of hits.

zero-results

{{count}} result{{#plural}}s{{/plural}} for "{{query}}"

  1. {{snippet}}

Empty state with retry prompt.

ARIA notes

<section aria-label> wraps the results. aria-live='polite' + aria-atomic='true' causes SR to announce count when results update. Snippet text: plain text from Tantivy, no HTML manipulation needed. Zero-results div toggled via [hidden] attribute (not display:none) for SR compatibility.

The usage tab for this component is not yet authored. Creative Design Contributors — pick this up.

Recipe is at /api/components/wiki-search-results.json.