{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "auth6",
  "title": "Magic Link Sign In",
  "description": "Full-height passwordless sign-in screen with a single email field, a send-magic-link button, a helper note, and social login providers below a divider. Perfect for passwordless and email-link authentication flows.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "input",
    "field"
  ],
  "files": [
    {
      "path": "registry/auth6/auth6.tsx",
      "content": "\"use client\";\n\nimport { Sparkles } from \"lucide-react\";\nimport Link from \"next/link\";\nimport { useId } from \"react\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Field,\n  FieldDescription,\n  FieldGroup,\n  FieldLabel,\n  FieldSeparator,\n} from \"@/components/ui/field\";\nimport { Input } from \"@/components/ui/input\";\nimport { cn } from \"@/lib/utils\";\n\ninterface SocialProvider {\n  label: string;\n  icon: React.ReactNode;\n  href?: string;\n}\n\ninterface Auth6Props {\n  icon?: React.ReactNode;\n  heading?: string;\n  description?: string;\n  socialProviders?: SocialProvider[];\n  signupPrompt?: {\n    text: string;\n    linkLabel: string;\n    href: string;\n  };\n  labels?: {\n    email?: string;\n    emailPlaceholder?: string;\n    submit?: string;\n    helper?: string;\n    divider?: string;\n  };\n  className?: string;\n}\n\nconst GoogleIcon = (\n  <svg viewBox=\"0 0 24 24\" className=\"size-4\" aria-hidden=\"true\">\n    <path\n      fill=\"#4285F4\"\n      d=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z\"\n    />\n    <path\n      fill=\"#34A853\"\n      d=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z\"\n    />\n    <path\n      fill=\"#FBBC05\"\n      d=\"M5.84 14.1c-.22-.66-.35-1.36-.35-2.1s.13-1.44.35-2.1V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l3.66-2.83z\"\n    />\n    <path\n      fill=\"#EA4335\"\n      d=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z\"\n    />\n  </svg>\n);\n\nconst AppleIcon = (\n  <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" className=\"size-4\" aria-hidden=\"true\">\n    <path d=\"M17.05 12.04c-.03-2.6 2.13-3.85 2.22-3.91-1.21-1.77-3.1-2.02-3.77-2.04-1.6-.16-3.13.94-3.94.94-.81 0-2.07-.92-3.4-.89-1.75.03-3.37 1.02-4.27 2.58-1.82 3.16-.47 7.83 1.31 10.39.87 1.25 1.91 2.66 3.27 2.61 1.31-.05 1.81-.85 3.4-.85 1.59 0 2.03.85 3.41.82 1.41-.02 2.3-1.28 3.16-2.54.99-1.45 1.4-2.86 1.42-2.93-.03-.01-2.73-1.05-2.76-4.15zM14.5 4.5c.72-.87 1.21-2.08 1.08-3.29-1.04.04-2.3.69-3.04 1.56-.67.77-1.25 2-1.09 3.18 1.16.09 2.34-.59 3.05-1.45z\" />\n  </svg>\n);\n\nexport const auth6Demo: Auth6Props = {\n  icon: <Sparkles className=\"size-6\" />,\n  heading: \"Sign in with email\",\n  description: \"No password needed. We'll email you a secure link to sign in instantly.\",\n  socialProviders: [\n    { label: \"Continue with Google\", icon: GoogleIcon, href: \"https://beste.co\" },\n    { label: \"Continue with Apple\", icon: AppleIcon, href: \"https://beste.co\" },\n  ],\n  signupPrompt: {\n    text: \"New here?\",\n    linkLabel: \"Create an account\",\n    href: \"https://beste.co\",\n  },\n  labels: {\n    email: \"Email\",\n    emailPlaceholder: \"you@example.com\",\n    submit: \"Send magic link\",\n    helper: \"The link signs you in with one click and expires in 10 minutes.\",\n    divider: \"or continue with\",\n  },\n};\n\nexport function Auth6({\n  icon,\n  heading,\n  description,\n  socialProviders = [],\n  signupPrompt,\n  labels = {},\n  className,\n}: Auth6Props) {\n  const fieldId = useId();\n\n  const {\n    email: emailLabel,\n    emailPlaceholder,\n    submit: submitLabel,\n    helper: helperText,\n    divider: dividerLabel,\n  } = 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 flex flex-col items-center text-center\">\n          {icon && (\n            <div className=\"mb-6 flex size-14 items-center justify-center rounded-full bg-muted text-muted-foreground\">\n              {icon}\n            </div>\n          )}\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=\"rounded-md border bg-card p-6 md:p-8\">\n          <form onSubmit={(e) => e.preventDefault()}>\n            <FieldGroup>\n              <Field>\n                {emailLabel && (\n                  <FieldLabel htmlFor={`${fieldId}-email`}>{emailLabel}</FieldLabel>\n                )}\n                <Input\n                  id={`${fieldId}-email`}\n                  type=\"email\"\n                  placeholder={emailPlaceholder}\n                  className=\"h-11\"\n                />\n                {helperText && <FieldDescription>{helperText}</FieldDescription>}\n              </Field>\n\n              {submitLabel && (\n                <Field>\n                  <Button type=\"submit\" size=\"lg\">\n                    {submitLabel}\n                  </Button>\n                </Field>\n              )}\n\n              {dividerLabel && (\n                <FieldSeparator className=\"*:data-[slot=field-separator-content]:bg-card\">\n                  {dividerLabel}\n                </FieldSeparator>\n              )}\n\n              {socialProviders.length > 0 && (\n                <Field>\n                  {socialProviders.map((provider, index) => (\n                    <Button key={index} variant=\"outline\" size=\"lg\" asChild>\n                      <Link href={provider.href ?? \"#\"}>\n                        {provider.icon}\n                        {provider.label}\n                      </Link>\n                    </Button>\n                  ))}\n                </Field>\n              )}\n            </FieldGroup>\n          </form>\n        </div>\n\n        {signupPrompt && (\n          <FieldDescription className=\"!mt-6 text-center\">\n            {signupPrompt.text}{\" \"}\n            <Link href={signupPrompt.href} className=\"font-medium text-foreground\">\n              {signupPrompt.linkLabel}\n            </Link>\n          </FieldDescription>\n        )}\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/auth6.tsx"
    }
  ],
  "type": "registry:block"
}