{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "onboarding",
  "title": "Onboarding checklist",
  "description": "A setup checklist card with a progress bar, completed and pending tasks, and start links for remaining steps.",
  "registryDependencies": [
    "card",
    "button",
    "https://www.quilldesignsystem.com/r/icon.json"
  ],
  "files": [
    {
      "path": "registry/blocks/onboarding.tsx",
      "content": "import {\n  Card,\n  CardHeader,\n  CardTitle,\n  CardDescription,\n  CardContent,\n} from '@/components/ui/card'\nimport { Button } from '@/components/ui/button'\nimport { Icon } from '@/components/ui/icon'\n\nconst tasks = [\n  { label: 'Create your account', done: true },\n  { label: 'Name your workspace', done: true },\n  { label: 'Invite your team', done: false },\n  { label: 'Connect a repository', done: false },\n]\n\n/** A setup checklist card with a progress bar, completed and pending tasks, and start links for remaining steps. */\nexport function Onboarding() {\n  const done = tasks.filter((t) => t.done).length\n  return (\n    <Card className=\"w-card\">\n      <CardHeader>\n        <CardTitle>Get set up</CardTitle>\n        <CardDescription>\n          {done} of {tasks.length} complete — you’re almost there.\n        </CardDescription>\n        <div className=\"mt-1 h-2 overflow-hidden rounded-full bg-[color-mix(in_oklab,var(--input)_10%,var(--muted))]\">\n          <div\n            className=\"h-full rounded-full bg-primary\"\n            style={{ width: `${(done / tasks.length) * 100}%` }}\n          />\n        </div>\n      </CardHeader>\n      <CardContent className=\"flex flex-col gap-2\">\n        {tasks.map((t) => (\n          <div key={t.label} className=\"flex items-center gap-3 rounded-lg px-1 py-1.5\">\n            <span\n              className={`flex size-5 items-center justify-center rounded-full ${\n                t.done ? 'bg-primary text-primary-foreground' : 'border border-input'\n              }`}\n            >\n              {t.done && <Icon name=\"check\" className=\"size-icon-xs\" />}\n            </span>\n            <span className={`flex-1 text-sm ${t.done ? 'text-muted-foreground line-through' : 'text-foreground'}`}>\n              {t.label}\n            </span>\n            {!t.done && (\n              <Button variant=\"link\" size=\"sm\">\n                Start\n              </Button>\n            )}\n          </div>\n        ))}\n      </CardContent>\n    </Card>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/quill/onboarding.tsx"
    }
  ],
  "meta": {
    "intent": [
      "productivity"
    ],
    "use_when": "You need a setup checklist that tracks progress and links to remaining steps.",
    "not_for": "the steps must happen in a strict sequence in one sitting, not a checklist a user dips in and out of over time → wizard; there's a single action to take, not a multi-step checklist to track → empty-state"
  },
  "docs": "A setup checklist card with a progress bar, completed and pending tasks, and start links for remaining steps. Do: Pair the visual progress bar with a text fraction (\"2 of 4 complete\") so the state isn't conveyed by bar width alone. Don't: Show only a progress bar with no numeric readout of how much is actually done. Use wizard when the steps must happen in a strict sequence in one sitting, not a checklist a user dips in and out of over time. Use empty-state when there's a single action to take, not a multi-step checklist to track.",
  "categories": [
    "productivity"
  ],
  "type": "registry:block"
}