{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "suggestions-demo",
  "title": "Suggestions Demo",
  "description": "A worked example of Suggestions: A row of prompts to start or continue with, for the moment someone does not know what to ask.",
  "dependencies": [
    "lucide-react@^1.31.0"
  ],
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/suggestions.json"
  ],
  "files": [
    {
      "path": "components/demos/suggestions-demo.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { FileText, ListChecks, Search } from \"lucide-react\"\n\nimport { Suggestions } from \"@/registry/default/suggestions/suggestions\"\n\nconst prompts = [\n  {\n    id: \"summary\",\n    label: \"Summarise this document\",\n    icon: <FileText size={14} />,\n  },\n  { id: \"risks\", label: \"Find the risks\", icon: <Search size={14} /> },\n  {\n    id: \"actions\",\n    label: \"List the action items\",\n    icon: <ListChecks size={14} />,\n  },\n]\n\nexport function SuggestionsDemo() {\n  const [chosen, setChosen] = React.useState<string | null>(null)\n\n  return (\n    <div className=\"grid w-full max-w-lg gap-3\">\n      <Suggestions suggestions={prompts} onSelect={(s) => setChosen(s.id)} />\n      <p className=\"text-muted-foreground text-center text-xs\">\n        {chosen\n          ? `Chose: ${prompts.find((p) => p.id === chosen)?.label}`\n          : \"Pick one to start.\"}\n      </p>\n    </div>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}