{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "tag-input-demo",
  "title": "Tag Input Demo",
  "description": "A worked example of Tag Input: An input that turns what you typed into a removable tag, and gives the last one back when you press backspace on an empty field.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/tag-input.json"
  ],
  "files": [
    {
      "path": "components/demos/tag-input-demo.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { TagInput } from \"@/registry/default/tag-input/tag-input\"\n\nexport function TagInputDemo() {\n  const [tags, setTags] = React.useState([\"design\", \"typescript\"])\n\n  return (\n    <div className=\"w-full max-w-md\">\n      <TagInput\n        value={tags}\n        onChange={setTags}\n        max={6}\n        label=\"Topics\"\n        placeholder=\"Add a topic\"\n      />\n      <p className=\"text-muted-foreground mt-2 text-xs\">\n        Enter or a comma adds one. Backspace on an empty field takes the last\n        one back.\n      </p>\n    </div>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}