{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "steps-3",
  "title": "Wizard Progress Bar Header",
  "description": "Interactive step wizard header with a step counter, percentage, progress bar, the active step title and description, and back and continue buttons.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "button",
    "progress"
  ],
  "files": [
    {
      "path": "registry/blocks/steps/3/steps-block.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Button } from \"@/components/ui/button\"\nimport { Progress } from \"@/components/ui/progress\"\nimport { IconPlaceholder } from \"@/components/icons/icon-placeholder\"\n\nconst steps = [\n  {\n    title: \"Create Your Account\",\n    description:\n      \"Set your name, workspace URL, and a password. This is what your team will see when they join.\",\n  },\n  {\n    title: \"Invite Your Team\",\n    description:\n      \"Add teammates by email. You can always invite more people later from settings.\",\n  },\n  {\n    title: \"Connect A Data Source\",\n    description:\n      \"Link a database or upload a file so we can generate your first dashboard automatically.\",\n  },\n  {\n    title: \"Review and Launch\",\n    description:\n      \"Confirm everything looks right, then publish your workspace and start exploring.\",\n  },\n]\n\nexport default function StepsBlock() {\n  const [current, setCurrent] = React.useState(0)\n  const total = steps.length\n  const step = steps[current]\n  const percent = ((current + 1) / total) * 100\n\n  return (\n    <section className=\"flex min-h-svh w-full items-center justify-center bg-background px-6 py-16 text-foreground\">\n      <div className=\"w-full max-w-md\">\n        <div className=\"flex items-center justify-between text-sm\">\n          <span className=\"font-medium\">\n            Step {current + 1} of {total}\n          </span>\n          <span className=\"text-muted-foreground tabular-nums\">\n            {Math.round(percent)}%\n          </span>\n        </div>\n        <Progress value={percent} className=\"mt-3\" />\n\n        <div className=\"mt-6\">\n          <h2 className=\"font-heading text-lg font-semibold tracking-tight\">\n            {step.title}\n          </h2>\n          <p className=\"mt-2 text-sm text-pretty text-muted-foreground\">\n            {step.description}\n          </p>\n        </div>\n\n        <div className=\"mt-8 flex items-center justify-between\">\n          <Button\n            variant=\"outline\"\n            onClick={() => setCurrent((c) => Math.max(0, c - 1))}\n            disabled={current === 0}\n          >\n            <IconPlaceholder\n              lucide=\"ChevronLeft\"\n              tabler=\"IconChevronLeft\"\n              hugeicons=\"ArrowLeft01Icon\"\n              phosphor=\"CaretLeft\"\n              remixicon=\"RiArrowLeftSLine\"\n              data-icon=\"inline-start\"\n              aria-hidden=\"true\"\n            />\n            Back\n          </Button>\n          <Button\n            onClick={() => setCurrent((c) => Math.min(total - 1, c + 1))}\n            disabled={current === total - 1}\n          >\n            {current === total - 1 ? \"Finish\" : \"Continue\"}\n            <IconPlaceholder\n              lucide=\"ChevronRight\"\n              tabler=\"IconChevronRight\"\n              hugeicons=\"ArrowRight01Icon\"\n              phosphor=\"CaretRight\"\n              remixicon=\"RiArrowRightSLine\"\n              data-icon=\"inline-end\"\n              aria-hidden=\"true\"\n            />\n          </Button>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/blocks/steps-3.tsx"
    }
  ],
  "meta": {
    "height": "336px",
    "tier": "free"
  },
  "categories": [
    "steps"
  ],
  "type": "registry:block"
}