{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "workspace-create",
  "type": "registry:ui",
  "title": "Workspace create",
  "description": "A compact create workspace form in React with a required name field, a URL slug input and a submit button wired to an onCreate callback.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.minidev.pro/r/button.json",
    "https://ui.minidev.pro/r/form-field.json",
    "https://ui.minidev.pro/r/input.json",
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/workspace-create.tsx",
      "type": "registry:ui",
      "target": "components/ui/workspace-create.tsx",
      "content": "\"use client\"\nimport { FormField } from \"@/components/ui/form-field\"\nimport { Input } from \"@/components/ui/input\"\nimport { Button } from \"@/components/ui/button\"\nimport { cn } from \"@/lib/utils\"\nfunction WorkspaceCreate({ className, onCreate }: { className?: string; onCreate?: () => void }) {\n  return (\n    <div data-slot=\"workspace-create\" className={cn(\"space-y-3\", className)}>\n      <FormField id=\"ws-name\" label=\"Workspace name\" required>\n        <Input id=\"ws-name\" placeholder=\"Acme Inc\" />\n      </FormField>\n      <FormField id=\"ws-url\" label=\"URL\">\n        <Input id=\"ws-url\" placeholder=\"acme\" />\n      </FormField>\n      <Button onClick={onCreate}>Create workspace</Button>\n    </div>\n  )\n}\nexport { WorkspaceCreate }\n"
    }
  ]
}
