{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "auth7",
  "title": "Account Chooser",
  "description": "Full-height account picker that lists saved accounts with avatars, names, and emails, plus a use-another-account row. Perfect for multi-account apps, SSO hubs, and returning-user sign-in.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "avatar",
    "field"
  ],
  "files": [
    {
      "path": "registry/auth7/auth7.tsx",
      "content": "\"use client\";\n\nimport { ChevronRight, UserPlus } from \"lucide-react\";\nimport Link from \"next/link\";\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\";\nimport { FieldDescription } from \"@/components/ui/field\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Account {\n  name: string;\n  email: string;\n  avatar?: {\n    src: string;\n    alt: string;\n  };\n  href?: string;\n}\n\ninterface Auth7Props {\n  heading?: string;\n  description?: string;\n  accounts?: Account[];\n  useAnotherAccount?: {\n    label: string;\n    href: string;\n  };\n  labels?: {\n    legal?: string;\n  };\n  className?: string;\n}\n\nexport const auth7Demo: Auth7Props = {\n  heading: \"Choose an account\",\n  description: \"to continue to Beste\",\n  accounts: [\n    {\n      name: \"Jane Cooper\",\n      email: \"jane@example.com\",\n      avatar: {\n        src: \"https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=100&h=100&fit=crop\",\n        alt: \"Jane Cooper\",\n      },\n      href: \"https://beste.co\",\n    },\n    {\n      name: \"Marcus Lee\",\n      email: \"marcus@workmail.com\",\n      avatar: {\n        src: \"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=100&h=100&fit=crop\",\n        alt: \"Marcus Lee\",\n      },\n      href: \"https://beste.co\",\n    },\n    {\n      name: \"Priya Sharma\",\n      email: \"priya@studio.io\",\n      avatar: {\n        src: \"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=100&h=100&fit=crop\",\n        alt: \"Priya Sharma\",\n      },\n      href: \"https://beste.co\",\n    },\n  ],\n  useAnotherAccount: {\n    label: \"Use another account\",\n    href: \"https://beste.co\",\n  },\n  labels: {\n    legal:\n      'By continuing, you agree to our <a href=\"https://beste.co\">Terms</a> and <a href=\"https://beste.co\">Privacy Policy</a>.',\n  },\n};\n\nexport function Auth7({\n  heading,\n  description,\n  accounts = [],\n  useAnotherAccount,\n  labels = {},\n  className,\n}: Auth7Props) {\n  const { legal: legalText } = labels;\n\n  return (\n    <section\n      className={cn(\"flex min-h-screen items-center justify-center px-4 py-16 md:py-24 w-full\", className)}\n    >\n      <div className=\"w-full max-w-md\">\n        <div className=\"mb-8 text-center\">\n          {heading && <h1 className=\"text-2xl font-bold md:text-3xl\">{heading}</h1>}\n          {description && <p className=\"mt-2 text-base text-muted-foreground\">{description}</p>}\n        </div>\n\n        <div className=\"overflow-hidden rounded-md border bg-card\">\n          <ul className=\"divide-y\">\n            {accounts.map((account, index) => (\n              <li key={index}>\n                <Link\n                  href={account.href ?? \"#\"}\n                  className=\"group/auth7 flex items-center gap-4 p-4 transition-colors hover:bg-muted\"\n                >\n                  <Avatar className=\"size-11\">\n                    {account.avatar && (\n                      <AvatarImage\n                        src={account.avatar.src}\n                        alt={account.avatar.alt}\n                        className=\"object-cover\"\n                      />\n                    )}\n                    <AvatarFallback>\n                      {account.name\n                        .split(\" \")\n                        .map((part) => part[0])\n                        .join(\"\")}\n                    </AvatarFallback>\n                  </Avatar>\n                  <div className=\"min-w-0 flex-1\">\n                    <p className=\"truncate font-medium\">{account.name}</p>\n                    <p className=\"truncate text-sm text-muted-foreground\">{account.email}</p>\n                  </div>\n                  <ChevronRight className=\"size-5 shrink-0 text-muted-foreground transition-transform group-hover/auth7:translate-x-0.5\" />\n                </Link>\n              </li>\n            ))}\n\n            {useAnotherAccount && (\n              <li>\n                <Link\n                  href={useAnotherAccount.href}\n                  className=\"flex items-center gap-4 p-4 transition-colors hover:bg-muted\"\n                >\n                  <span className=\"flex size-11 items-center justify-center rounded-full bg-muted text-muted-foreground\">\n                    <UserPlus className=\"size-5\" />\n                  </span>\n                  <span className=\"flex-1 font-medium\">{useAnotherAccount.label}</span>\n                </Link>\n              </li>\n            )}\n          </ul>\n        </div>\n\n        {legalText && (\n          <FieldDescription\n            className=\"!mt-6 px-6 text-center\"\n            dangerouslySetInnerHTML={{ __html: legalText }}\n          />\n        )}\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/auth7.tsx"
    }
  ],
  "type": "registry:block"
}