{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "account-settings-form",
  "title": "Account Settings Form",
  "description": "Tabbed account settings with profile, account, notification, and billing tabs.",
  "registryDependencies": [
    "@buzzform/tabs",
    "@buzzform/text",
    "@buzzform/email",
    "@buzzform/textarea",
    "@buzzform/password",
    "@buzzform/select",
    "@buzzform/switch",
    "card",
    "sonner"
  ],
  "files": [
    {
      "path": "registry/shadcn/examples/account-settings-form.tsx",
      "content": "\"use client\";\n\nimport { defineSchema, type InferType } from \"@buildnbuzz/form-react\";\nimport { toast } from \"sonner\";\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\";\nimport {\n  Form,\n  FormContent,\n  FormFields,\n  FormSubmit,\n} from \"@/registry/shadcn/form\";\n\nconst accountSettingsSchema = defineSchema({\n  fields: [\n    {\n      type: \"tabs\",\n      ui: {\n        variant: \"default\",\n        spacing: \"md\",\n      },\n      tabs: [\n        {\n          label: \"Profile\",\n          fields: [\n            {\n              type: \"text\",\n              name: \"displayName\",\n              label: \"Display Name\",\n              placeholder: \"John Doe\",\n              required: true,\n            },\n            {\n              type: \"text\",\n              name: \"username\",\n              label: \"Username\",\n              placeholder: \"johndoe\",\n              required: true,\n            },\n            {\n              type: \"textarea\",\n              name: \"bio\",\n              label: \"Bio\",\n              placeholder: \"Tell us about yourself...\",\n              rows: 3,\n            },\n          ],\n        },\n        {\n          label: \"Account\",\n          fields: [\n            {\n              type: \"email\",\n              name: \"email\",\n              label: \"Email Address\",\n              required: true,\n            },\n            {\n              type: \"password\",\n              name: \"password\",\n              label: \"New Password\",\n              placeholder: \"Leave blank to keep current\",\n              ui: {\n                showRequirements: true,\n              },\n            },\n          ],\n        },\n        {\n          label: \"Notifications\",\n          fields: [\n            {\n              type: \"switch\",\n              name: \"emailNotifications\",\n              label: \"Email Notifications\",\n              description: \"Receive updates via email\",\n              defaultValue: true,\n            },\n            {\n              type: \"switch\",\n              name: \"pushNotifications\",\n              label: \"Push Notifications\",\n              description: \"Receive push notifications\",\n              defaultValue: false,\n            },\n            {\n              type: \"select\",\n              name: \"frequency\",\n              label: \"Digest Frequency\",\n              options: [\"Instant\", \"Daily\", \"Weekly\", \"Never\"],\n              defaultValue: \"Daily\",\n            },\n          ],\n        },\n        {\n          label: \"Billing\",\n          disabled: true,\n          fields: [\n            {\n              type: \"text\",\n              name: \"placeholder\",\n              label: \"Coming Soon\",\n            },\n          ],\n        },\n      ],\n    },\n  ],\n});\n\ntype AccountSettingsSchema = InferType<typeof accountSettingsSchema.fields>;\n\nexport default function AccountSettingsForm() {\n  return (\n    <Card>\n      <CardHeader>\n        <CardTitle>Account Settings</CardTitle>\n        <CardDescription>\n          Multi-step settings with tabbed navigation\n        </CardDescription>\n      </CardHeader>\n      <CardContent>\n        <Form\n          schema={accountSettingsSchema}\n          onSubmit={async ({ value }) => {\n            const data = value as AccountSettingsSchema;\n            await new Promise((r) => setTimeout(r, 1000));\n            toast(\"Settings saved!\", {\n              description: (\n                <pre className=\"mt-2 max-h-48 overflow-auto rounded-md bg-muted text-muted-foreground p-3 text-xs\">\n                  <code>{JSON.stringify(data, null, 2)}</code>\n                </pre>\n              ),\n            });\n          }}\n        >\n          <FormContent>\n            <FormFields className=\"space-y-4\" />\n            <FormSubmit className=\"mt-6 w-full\">Save Changes</FormSubmit>\n          </FormContent>\n        </Form>\n      </CardContent>\n    </Card>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/buzzform/examples/account-settings-form.tsx"
    }
  ],
  "type": "registry:block"
}