{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-signup",
  "title": "Footer signup",
  "description": "A footer that leads with the newsletter: what it is beside the form to sign up, then one row of the logo, the links and the social links, over the legal line.",
  "dependencies": [],
  "registryDependencies": [
    "https://kinoui.com/r/footer-parts.json",
    "https://kinoui.com/r/newsletter.json"
  ],
  "files": [
    {
      "path": "registry/components/kino/footer-signup/footer-signup.tsx",
      "content": "'use client'\n\nimport {\n  type FooterBaseProps,\n  type FooterHeading,\n  footerColumnClassName,\n  type FooterLink,\n  FooterLinkItem,\n  FooterLegal,\n  FooterSocial,\n  FooterStatusLink,\n} from '@/registry/lib/footer-parts'\nimport { NewsletterForm } from '@/registry/lib/newsletter'\nimport { type ReactNode, useId } from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/*\n * A footer that leads with the newsletter: what it is and how often it\n * comes, beside the form to sign up, then one row of the logo, the links\n * and the social links, and the legal line. For a site with a short list\n * of pages and a letter worth reading.\n *\n *   <FooterSignup\n *     logo={<a href='/' aria-label='Kino, home'><Logo /></a>}\n *     title='The changelog, once a month'\n *     onSubscribe={subscribe}\n *     links={[{ label: 'Pricing', href: '/pricing' }]}\n *     copyright='© 2026 Kino Labs, Inc.'\n *   />\n */\n\ninterface FooterSignupProps extends Omit<FooterBaseProps, 'title'> {\n  /** What the letter is, as the footer's heading. */\n  title: ReactNode\n  /** What's in it and how often it comes. */\n  description?: ReactNode\n  /** Signs the address up. A throw or a rejected promise says it couldn't. */\n  onSubscribe: (email: string) => unknown\n  submitLabel?: string\n  links: FooterLink[]\n  /** The title's level: `h2` under the page's sections. */\n  heading?: FooterHeading\n}\n\nfunction FooterSignup({\n  logo,\n  title,\n  description,\n  onSubscribe,\n  submitLabel,\n  links,\n  label = 'Footer',\n  copyright,\n  legal,\n  social,\n  status,\n  themeSwitcher = true,\n  heading = 'h2',\n  className,\n  ...props\n}: FooterSignupProps) {\n  const titleId = useId()\n  const Title = heading\n  return (\n    <footer\n      data-slot='footer-signup'\n      className={cn('@container/footer w-full min-w-0 border-t', className)}\n      {...props}\n    >\n      <div\n        className={cn(\n          footerColumnClassName,\n          'flex flex-col gap-12 pt-14 pb-8 @3xl/footer:pt-16',\n        )}\n      >\n        <section\n          aria-labelledby={titleId}\n          className='grid min-w-0 gap-6 @3xl/footer:grid-cols-[minmax(0,1fr)_minmax(0,26rem)] @3xl/footer:items-center @3xl/footer:gap-16'\n        >\n          <div className='flex min-w-0 flex-col gap-2'>\n            <Title\n              id={titleId}\n              className='text-2xl leading-tight font-medium tracking-tight text-balance'\n            >\n              <bdi>{title}</bdi>\n            </Title>\n            {description ? (\n              <p className='text-muted-foreground max-w-md text-sm text-pretty'>\n                <bdi>{description}</bdi>\n              </p>\n            ) : null}\n          </div>\n          <NewsletterForm onSubscribe={onSubscribe} submitLabel={submitLabel} />\n        </section>\n        <div className='flex min-w-0 flex-col gap-6 border-t pt-8 @3xl/footer:flex-row @3xl/footer:items-center @3xl/footer:gap-10'>\n          <div className='flex shrink-0 items-center'>{logo}</div>\n          <nav aria-label={label} className='min-w-0 flex-1'>\n            <ul className='flex flex-wrap gap-x-6 gap-y-2'>\n              {links.map((link) => (\n                <li key={link.href} className='flex'>\n                  <FooterLinkItem link={link} />\n                </li>\n              ))}\n            </ul>\n          </nav>\n          {social?.length ? <FooterSocial social={social} className='shrink-0' /> : null}\n        </div>\n        <FooterLegal\n          copyright={copyright}\n          legal={legal}\n          themeSwitcher={themeSwitcher}\n          start={status ? <FooterStatusLink status={status} /> : null}\n        />\n      </div>\n    </footer>\n  )\n}\n\nexport { FooterSignup, type FooterSignupProps }\n",
      "type": "registry:component",
      "target": "@components/kino/footer-signup/footer-signup.tsx"
    }
  ],
  "type": "registry:block"
}