{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "wizard",
  "title": "Setup wizard step",
  "description": "A multi-step setup card — a progress stepper, workspace fields, and back/continue navigation.",
  "registryDependencies": [
    "card",
    "input",
    "label",
    "button",
    "https://www.quilldesignsystem.com/r/icon.json"
  ],
  "files": [
    {
      "path": "registry/blocks/wizard.tsx",
      "content": "import {\n  Card,\n  CardHeader,\n  CardTitle,\n  CardDescription,\n  CardContent,\n  CardFooter,\n} from '@/components/ui/card'\nimport { Input } from '@/components/ui/input'\nimport { Label } from '@/components/ui/label'\nimport { Button } from '@/components/ui/button'\nimport { Icon } from '@/components/ui/icon'\n\nconst steps = ['Account', 'Workspace', 'Invite']\n\n/** A multi-step setup card — a progress stepper, workspace fields, and back/continue navigation. */\nexport function Wizard() {\n  return (\n    <Card className=\"w-card-lg\">\n      <CardHeader>\n        <ol className=\"flex items-center gap-2\">\n          {steps.map((s, i) => {\n            const state = i === 0 ? 'done' : i === 1 ? 'current' : 'todo'\n            return (\n              // only steps followed by a connector stretch: the last ends flush with the header's right edge instead of leaving a gap\n              <li key={s} className={`flex items-center gap-2 ${i < steps.length - 1 ? 'flex-1' : ''}`}>\n                <span\n                  className={`flex size-6 shrink-0 items-center justify-center rounded-full text-xs font-medium ${\n                    state === 'done'\n                      ? 'bg-primary text-primary-foreground'\n                      : state === 'current'\n                        ? 'bg-primary/10 text-primary ring-1 ring-primary'\n                        : 'bg-muted text-muted-foreground'\n                  }`}\n                >\n                  {state === 'done' ? <Icon name=\"check\" className=\"size-icon-sm\" /> : i + 1}\n                </span>\n                <span className={`text-sm ${state === 'todo' ? 'text-muted-foreground' : 'text-foreground'}`}>\n                  {s}\n                </span>\n                {i < steps.length - 1 && <span className=\"h-px flex-1 bg-border\" />}\n              </li>\n            )\n          })}\n        </ol>\n        <CardTitle className=\"pt-2\">Name your workspace</CardTitle>\n        <CardDescription>This is where your team’s projects will live.</CardDescription>\n      </CardHeader>\n      <CardContent className=\"flex flex-col gap-4\">\n        <div className=\"flex flex-col gap-1.5\">\n          <Label htmlFor=\"w-name\">Workspace name</Label>\n          <Input id=\"w-name\" placeholder=\"Acme Inc.\" />\n        </div>\n        <div className=\"flex flex-col gap-1.5\">\n          <Label htmlFor=\"w-url\">Workspace URL</Label>\n          <Input id=\"w-url\" placeholder=\"acme\" />\n        </div>\n      </CardContent>\n      <CardFooter className=\"justify-between\">\n        <Button variant=\"ghost\">Back</Button>\n        <Button>\n          Continue <Icon name=\"arrow_forward\" />\n        </Button>\n      </CardFooter>\n    </Card>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/quill/wizard.tsx"
    }
  ],
  "meta": {
    "intent": [
      "form",
      "productivity"
    ],
    "use_when": "You need a multi-step setup flow with a progress stepper and back/continue navigation.",
    "not_for": "the steps are a checklist of tasks to complete over time, not a linear form flow completed in one sitting → onboarding; there's only one step and no sequence to track — this is a single settings page, not a flow → settings"
  },
  "docs": "A multi-step setup card — a progress stepper, workspace fields, and back/continue navigation. Do: Show every step in the stepper up front (done/current/todo), so users know how much is left. Don't: Reveal steps one at a time with no sense of total progress. Use onboarding when the steps are a checklist of tasks to complete over time, not a linear form flow completed in one sitting. Use settings when there's only one step and no sequence to track — this is a single settings page, not a flow.",
  "categories": [
    "form",
    "productivity"
  ],
  "type": "registry:block"
}