{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "stepper-demo",
  "title": "Stepper Demo",
  "description": "A worked example of Stepper: Where someone is in something with a beginning and an end, said in words as well as drawn.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/stepper.json"
  ],
  "files": [
    {
      "path": "components/demos/stepper-demo.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Stepper } from \"@/registry/default/stepper/stepper\"\n\nconst steps = [\n  { id: \"account\", label: \"Account\", description: \"Name and email\" },\n  { id: \"workspace\", label: \"Workspace\", description: \"Where things live\" },\n  { id: \"invite\", label: \"Invite\", description: \"Bring the others\" },\n  { id: \"done\", label: \"Done\" },\n]\n\nexport function StepperDemo() {\n  const [current, setCurrent] = React.useState(1)\n\n  return (\n    <div className=\"grid w-full max-w-xl gap-6\">\n      <Stepper steps={steps} current={current} onSelect={setCurrent} />\n\n      <div className=\"flex justify-center gap-2\">\n        <button\n          type=\"button\"\n          className=\"border-border inline-flex min-h-11 items-center rounded-full border px-4 text-sm font-semibold disabled:opacity-40\"\n          disabled={current === 0}\n          onClick={() => setCurrent((value) => value - 1)}\n        >\n          Back\n        </button>\n        <button\n          type=\"button\"\n          className=\"bg-primary text-primary-foreground inline-flex min-h-11 items-center rounded-full px-4 text-sm font-semibold disabled:opacity-40\"\n          disabled={current === steps.length - 1}\n          onClick={() => setCurrent((value) => value + 1)}\n        >\n          Next\n        </button>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}