{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-4",
  "title": "Grid Backdrop Email Capture",
  "description": "Centered hero section over a masked grid and radial glow, with a beta badge and an inline email capture form that toasts on submit.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "badge",
    "button",
    "input",
    "label",
    "sonner"
  ],
  "files": [
    {
      "path": "registry/blocks/hero/4/hero-block.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { toast } from \"sonner\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\nimport { Toaster } from \"@/components/ui/sonner\"\nimport { IconPlaceholder } from \"@/components/icons/icon-placeholder\"\n\nexport default function HeroBlock() {\n  const [email, setEmail] = useState(\"\")\n  const [submitted, setSubmitted] = useState(false)\n\n  function handleSubmit(event: React.FormEvent<HTMLFormElement>) {\n    event.preventDefault()\n    if (!email) return\n    setSubmitted(true)\n    toast.success(\"You're on the list\", {\n      description: `We'll reach out to ${email} when your spot is ready.`,\n    })\n  }\n\n  return (\n    <section className=\"relative isolate flex w-full items-center justify-center overflow-hidden bg-background px-6 py-16 text-foreground\">\n      <div\n        aria-hidden=\"true\"\n        className={cn(\n          \"pointer-events-none absolute inset-0 -z-10\",\n          \"bg-[linear-gradient(to_right,var(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,var(--color-border)_1px,transparent_1px)]\",\n          \"bg-[size:56px_56px] opacity-40\",\n          \"[mask-image:radial-gradient(ellipse_70%_60%_at_50%_40%,black,transparent)]\"\n        )}\n      />\n      <Toaster />\n      <div\n        aria-hidden=\"true\"\n        className=\"pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(ellipse_60%_50%_at_50%_0%,var(--color-primary)/0.12,transparent)]\"\n      />\n\n      <div className=\"mx-auto flex w-full max-w-2xl flex-col items-center text-center\">\n        <Badge variant=\"secondary\" className=\"px-3 py-1\">\n          <IconPlaceholder\n            lucide=\"Sparkles\"\n            tabler=\"IconSparkles\"\n            hugeicons=\"SparklesIcon\"\n            phosphor=\"Sparkle\"\n            remixicon=\"RiSparkling2Line\"\n            data-icon=\"inline-start\"\n            className=\"size-3.5\"\n          />\n          Now in public beta\n        </Badge>\n\n        <h1 className=\"mt-6 font-heading text-4xl font-bold tracking-tight text-balance sm:text-5xl md:text-6xl\">\n          Ship your next idea with Acme\n        </h1>\n\n        <p className=\"mt-5 max-w-xl text-base text-balance text-muted-foreground sm:text-lg\">\n          The all-in-one platform that turns rough sketches into\n          production-ready apps. Build faster, launch sooner, and scale without\n          the busywork.\n        </p>\n\n        <form\n          onSubmit={handleSubmit}\n          className=\"mt-9 flex w-full max-w-md flex-col gap-3 sm:flex-row\"\n        >\n          <div className=\"flex-1\">\n            <Label htmlFor=\"hero-email\" className=\"sr-only\">\n              Email address\n            </Label>\n            <Input\n              id=\"hero-email\"\n              type=\"email\"\n              required\n              placeholder=\"you@acme.com\"\n              value={email}\n              onChange={(event) => setEmail(event.target.value)}\n              className=\"h-11\"\n            />\n          </div>\n          <Button\n            type=\"submit\"\n            size=\"lg\"\n            className=\"h-11 shrink-0 active:scale-[0.97] transition-transform duration-[160ms] ease-[cubic-bezier(0.23,1,0.32,1)]\"\n          >\n            {submitted ? \"You're on the list\" : \"Get Started\"}\n            {!submitted && (\n              <IconPlaceholder\n                lucide=\"ArrowRight\"\n                tabler=\"IconArrowRight\"\n                hugeicons=\"ArrowRightIcon\"\n                phosphor=\"ArrowRight\"\n                remixicon=\"RiArrowRightLine\"\n                data-icon=\"inline-end\"\n                className=\"size-4\"\n              />\n            )}\n          </Button>\n        </form>\n\n        <p className=\"mt-4 flex items-center justify-center gap-1.5 text-xs text-muted-foreground\">\n          <IconPlaceholder\n            lucide=\"ShieldCheck\"\n            tabler=\"IconShieldCheck\"\n            hugeicons=\"Shield01Icon\"\n            phosphor=\"ShieldCheck\"\n            remixicon=\"RiShieldCheckLine\"\n            className=\"size-3.5\"\n          />\n          No credit card required. Unsubscribe anytime.\n        </p>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/blocks/hero-4.tsx"
    }
  ],
  "meta": {
    "height": "516px",
    "tier": "free"
  },
  "categories": [
    "hero"
  ],
  "type": "registry:block"
}