{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-4",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "badge",
    "button",
    "input",
    "separator"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/footer-4.tsx",
      "content": "import { type ReactNode } from \"react\";\nimport { Separator } from \"@/components/ui/separator\";\nimport { Input } from \"@/components/ui/input\";\nimport { Button } from \"@/components/ui/button\";\nimport { Badge } from \"@/components/ui/badge\";\n\nexport interface Footer4Link {\n  label: string;\n  href: string;\n}\n\nexport interface Footer4LinkGroup {\n  title: string;\n  links: Footer4Link[];\n}\n\nexport interface Footer4SocialLink {\n  icon: ReactNode;\n  href: string;\n  label: string;\n}\n\nexport interface Footer4BadgeItem {\n  label: string;\n  icon?: ReactNode;\n}\n\nexport interface Footer4Props {\n  /** Brand logo node */\n  logo?: ReactNode;\n  /** Brand / product name */\n  brandName: string;\n  /** Short punchy tagline rendered large */\n  tagline: string;\n  /** Supporting sentence beneath the tagline */\n  description?: string;\n  /** Optional badge shown above the tagline */\n  badge?: Footer4BadgeItem;\n  /** Newsletter section title */\n  newsletterTitle: string;\n  /** Newsletter supporting copy */\n  newsletterSubtitle?: string;\n  /** Input placeholder */\n  newsletterPlaceholder?: string;\n  /** Button label */\n  newsletterButtonLabel?: string;\n  /** Link columns */\n  linkGroups?: Footer4LinkGroup[];\n  /** Social icon links shown in the bottom bar */\n  socialLinks?: Footer4SocialLink[];\n  /** Bottom bar legal / nav links */\n  legalLinks?: Footer4Link[];\n  /** Copyright text */\n  copyright: string;\n}\n\nexport function Footer4({\n  logo,\n  brandName,\n  tagline,\n  description,\n  badge,\n  newsletterTitle,\n  newsletterSubtitle,\n  newsletterPlaceholder = \"you@company.com\",\n  newsletterButtonLabel = \"Subscribe\",\n  linkGroups = [],\n  socialLinks = [],\n  legalLinks = [],\n  copyright,\n}: Footer4Props) {\n  return (\n    <footer className=\"bg-background w-full\">\n      <div className=\"mx-auto max-w-7xl px-6 pt-16 pb-0 md:px-12\">\n        <div className=\"grid grid-cols-1 gap-12 lg:grid-cols-12 lg:gap-0\">\n          <div className=\"flex flex-col justify-between gap-6 lg:col-span-5 lg:pr-16\">\n            <div className=\"flex items-center gap-2\">\n              {logo && (\n                <div className=\"text-primary flex size-6 items-center justify-center\">\n                  {logo}\n                </div>\n              )}\n              <span className=\"text-primary text-2xl font-semibold tracking-tight\">\n                {brandName}\n              </span>\n            </div>\n            <div className=\"flex flex-col gap-5\">\n              {badge && (\n                <Badge\n                  variant=\"secondary\"\n                  className=\"w-fit gap-1.5 rounded-full px-3 py-1 text-xs font-medium\"\n                >\n                  {badge.icon && (\n                    <span className=\"text-primary\">{badge.icon}</span>\n                  )}\n                  {badge.label}\n                </Badge>\n              )}\n\n              <h2 className=\"text-foreground text-3xl leading-tight font-bold tracking-tight sm:text-4xl lg:text-5xl\">\n                {tagline}\n              </h2>\n\n              {description && (\n                <p className=\"text-muted-foreground max-w-sm text-sm leading-relaxed\">\n                  {description}\n                </p>\n              )}\n            </div>\n          </div>\n\n          <div className=\"lg:border-border flex flex-col gap-12 lg:col-span-7 lg:border-l lg:pl-16\">\n            <div className=\"bg-muted/50 rounded-2xl p-8\">\n              <div className=\"mb-5 flex flex-col gap-1\">\n                <h3 className=\"text-foreground text-base font-semibold\">\n                  {newsletterTitle}\n                </h3>\n                {newsletterSubtitle && (\n                  <p className=\"text-muted-foreground text-sm\">\n                    {newsletterSubtitle}\n                  </p>\n                )}\n              </div>\n\n              <form\n                className=\"flex flex-col gap-2.5 sm:flex-row\"\n                onSubmit={(e) => e.preventDefault()}\n              >\n                <Input\n                  type=\"email\"\n                  placeholder={newsletterPlaceholder}\n                  className=\"bg-muted focus-visible:ring-primary w-full rounded-md border-transparent py-5 pr-32 pl-6 shadow-[0_0_0_0.5px_rgba(0,0,0,0.03),0_2px_4px_0_rgba(0,0,0,0.05),inset_0_1px_0_0px_rgba(255,255,255,0.5)] outline-none focus-visible:border-none focus-visible:ring-1 dark:shadow-[0_0_0_0.5px_rgba(0,0,0,0.03),0_2px_4px_0_rgba(0,0,0,0.05),inset_0_1px_0_0px_rgba(255,255,255,0.1)]\"\n                />\n                <Button\n                  type=\"submit\"\n                  className=\"border-primary shrink-0 rounded-lg px-5 py-5 text-sm font-medium shadow-[0_0_0_0.5px_rgba(0,0,0,0.03),0_2px_4px_0_rgba(0,0,0,0.05),inset_0_1px_0_0px_rgba(255,255,255,0.5)] text-shadow-2xs\"\n                >\n                  {newsletterButtonLabel}\n                </Button>\n              </form>\n\n              <p className=\"text-muted-foreground mt-3 text-xs\">\n                No spam, ever. Unsubscribe anytime.\n              </p>\n            </div>\n\n            {linkGroups.length > 0 && (\n              <div className=\"grid grid-cols-2 gap-8 sm:grid-cols-3\">\n                {linkGroups.map((group, gi) => (\n                  <div key={gi} className=\"flex flex-col gap-4\">\n                    <h4 className=\"text-foreground text-xs font-semibold tracking-wider uppercase\">\n                      {group.title}\n                    </h4>\n                    <ul className=\"flex flex-col gap-3\">\n                      {group.links.map((link, li) => (\n                        <li key={li}>\n                          <a\n                            href={link.href}\n                            className=\"text-muted-foreground hover:text-foreground text-sm transition-colors duration-150\"\n                          >\n                            {link.label}\n                          </a>\n                        </li>\n                      ))}\n                    </ul>\n                  </div>\n                ))}\n              </div>\n            )}\n          </div>\n        </div>\n      </div>\n\n      <div className=\"mx-auto max-w-7xl px-6 md:px-12\">\n        <Separator className=\"mt-12 opacity-60\" />\n\n        <div className=\"flex flex-col items-center justify-between gap-4 py-6 sm:flex-row\">\n          <p className=\"text-muted-foreground text-xs\">{copyright}</p>\n\n          {legalLinks.length > 0 && (\n            <div className=\"flex flex-wrap items-center gap-5\">\n              {legalLinks.map((link, i) => (\n                <a\n                  key={i}\n                  href={link.href}\n                  className=\"text-muted-foreground hover:text-foreground text-xs transition-colors duration-150\"\n                >\n                  {link.label}\n                </a>\n              ))}\n            </div>\n          )}\n\n          {socialLinks.length > 0 && (\n            <div className=\"flex items-center gap-2\">\n              {socialLinks.map((social, i) => (\n                <a\n                  key={i}\n                  href={social.href}\n                  aria-label={social.label}\n                  target=\"_blank\"\n                  rel=\"noopener noreferrer\"\n                  className=\"text-muted-foreground hover:text-foreground flex h-8 w-8 items-center justify-center rounded-md transition-colors duration-150\"\n                >\n                  {social.icon}\n                </a>\n              ))}\n            </div>\n          )}\n        </div>\n      </div>\n    </footer>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/footer-4.tsx"
    }
  ],
  "type": "registry:ui"
}
