{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "model-picker-demo",
  "title": "Model Picker Demo",
  "description": "A worked example of Model Picker: A model chooser that has room for what each one is good at, and full keyboard control.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/model-picker.json"
  ],
  "files": [
    {
      "path": "components/demos/model-picker-demo.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n  ModelPicker,\n  type Model,\n} from \"@/registry/default/model-picker/model-picker\"\n\nconst models: Model[] = [\n  {\n    id: \"opus\",\n    name: \"Opus\",\n    description: \"The deepest reasoning, for work that is worth the wait.\",\n    badges: [\"reasoning\", \"vision\"],\n  },\n  {\n    id: \"sonnet\",\n    name: \"Sonnet\",\n    description: \"The everyday balance of speed and judgement.\",\n    badges: [\"balanced\", \"vision\"],\n  },\n  {\n    id: \"haiku\",\n    name: \"Haiku\",\n    description: \"Quick answers where latency matters more than depth.\",\n    badges: [\"fast\"],\n  },\n  {\n    id: \"legacy\",\n    name: \"Legacy\",\n    description: \"Retired. Kept here so old links still resolve.\",\n    disabled: true,\n  },\n]\n\nexport function ModelPickerDemo() {\n  const [value, setValue] = React.useState(\"sonnet\")\n\n  return (\n    <div className=\"grid w-full max-w-sm gap-3\">\n      <ModelPicker models={models} value={value} onValueChange={setValue} />\n      <p className=\"text-muted-foreground text-xs\" role=\"status\">\n        Answering with {models.find((model) => model.id === value)?.name}\n      </p>\n    </div>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}