{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "search-results",
  "title": "Search results",
  "description": "A docs search panel — query input, result count, and a linked result list with breadcrumbs and type badges.",
  "registryDependencies": [
    "input",
    "badge",
    "separator",
    "https://www.quilldesignsystem.com/r/icon.json"
  ],
  "files": [
    {
      "path": "registry/blocks/search-results.tsx",
      "content": "import { Input } from '@/components/ui/input'\nimport { Badge } from '@/components/ui/badge'\nimport { Icon } from '@/components/ui/icon'\nimport { Separator } from '@/components/ui/separator'\n\nconst results = [\n  { title: 'Design tokens', crumb: 'Docs › Foundations', type: 'Guide' },\n  { title: 'Button component', crumb: 'Components › Button', type: 'Component' },\n  { title: 'Theming & dark mode', crumb: 'Docs › Theming', type: 'Guide' },\n  { title: 'Accessibility checklist', crumb: 'Docs › A11y', type: 'Guide' },\n]\n\n/** A docs search panel — query input, result count, and a linked result list with breadcrumbs and type badges. */\nexport function SearchResults() {\n  return (\n    <div className=\"flex w-card-lg flex-col gap-3 text-foreground\">\n      <Input placeholder=\"Search the docs…\" defaultValue=\"token\" aria-label=\"Search\" />\n      <p className=\"text-xs text-muted-foreground\">{results.length} results for “token”</p>\n      <ul className=\"overflow-hidden rounded-lg border border-border\">\n        {results.map((r, i) => (\n          <li key={r.title}>\n            {i > 0 && <Separator />}\n            <a\n              href=\"#\"\n              className=\"flex items-center gap-3 px-4 py-3 transition-colors hover:bg-accent outline-hidden focus-visible:ring-3 focus-visible:ring-inset focus-visible:ring-ring/50\"\n            >\n              <div className=\"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground\">\n                <Icon name=\"description\" className=\"size-icon-lg\" />\n              </div>\n              <div className=\"flex flex-1 flex-col\">\n                <span className=\"text-sm font-medium\">{r.title}</span>\n                <span className=\"text-xs text-muted-foreground\">{r.crumb}</span>\n              </div>\n              <Badge variant=\"outline\">{r.type}</Badge>\n            </a>\n          </li>\n        ))}\n      </ul>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/quill/search-results.tsx"
    }
  ],
  "meta": {
    "intent": [
      "navigation",
      "data-display"
    ],
    "use_when": "You need a search panel with a query input, result count, and a linked result list.",
    "not_for": "search is a global, keyboard-triggered overlay (⌘K) rather than an inline panel on the page → command-palette; results are structured records with multiple sortable columns, not a simple linked list → data-table"
  },
  "docs": "A docs search panel — query input, result count, and a linked result list with breadcrumbs and type badges. Do: State the result count in visible text (2 results for “token”) so users know the query actually ran. Don't: Leave users guessing whether zero results means the search hasn't run yet or genuinely found nothing. Use command-palette when search is a global, keyboard-triggered overlay (⌘K) rather than an inline panel on the page. Use data-table when results are structured records with multiple sortable columns, not a simple linked list.",
  "categories": [
    "navigation",
    "data-display"
  ],
  "type": "registry:block"
}