{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer",
  "title": "Footer",
  "description": "Government site footer with link columns, social links and a bottom bar.",
  "registryDependencies": [
    "https://indiacn.in/r/theme.json",
    "https://indiacn.in/r/typography.json"
  ],
  "files": [
    {
      "path": "components/ui/footer.tsx",
      "content": "import { ComponentProps, ReactNode } from 'react';\n\nimport { Body2, Label1, Label2 } from '@/components/ui/typography';\nimport { cn } from '@/lib/utils';\n\n/*\n * UX4G footer: a white body over a 52px primary bottom strip. The body holds a\n * brand column with 28px circular social links, link columns, and space for\n * department attribution; the strip holds the copyright and policy links.\n */\n\n/** Footer root. Renders the landmark, so no wrapper element is needed. */\nfunction Footer({ className, ...props }: ComponentProps<'footer'>) {\n  return <footer className={cn('bg-neutral-0 w-full', className)} {...props} />;\n}\n\n/** The white body. Lay columns out inside it. */\nfunction FooterBody({ className, children, ...props }: ComponentProps<'div'>) {\n  return (\n    <div className={cn('border-t border-neutral-100', className)} {...props}>\n      <div className='mx-auto grid max-w-[1440px] grid-cols-1 gap-10 px-4 py-12 sm:px-6 lg:grid-cols-[minmax(0,1.4fr)_minmax(0,3fr)_minmax(0,1.2fr)]'>\n        {children}\n      </div>\n    </div>\n  );\n}\n\n/** Brand column: a logo slot, a tagline, and usually FooterSocial beneath. */\nfunction FooterBrand({\n  className,\n  tagline,\n  children,\n  ...props\n}: ComponentProps<'div'> & { tagline?: ReactNode }) {\n  return (\n    <div className={cn('flex flex-col gap-4', className)} {...props}>\n      {children}\n      {tagline && <Body2 className='max-w-[280px] text-neutral-600'>{tagline}</Body2>}\n    </div>\n  );\n}\n\n/** Row of social links. Wraps, because there are usually more than fit. */\nfunction FooterSocial({ className, ...props }: ComponentProps<'div'>) {\n  return <div className={cn('flex flex-wrap gap-2.5', className)} {...props} />;\n}\n\ninterface IFooterSocialLinkProps extends ComponentProps<'a'> {\n  /** Required: an icon-only link is nameless without it. */\n  label: string;\n}\n\n/** One 28px circular social link. */\nfunction FooterSocialLink({ className, label, children, ...props }: IFooterSocialLinkProps) {\n  return (\n    <a\n      aria-label={label}\n      className={cn(\n        'focus-visible:shadow-focus-primary hover:border-primary hover:text-primary inline-flex size-7 items-center justify-center rounded-full border border-neutral-200 text-neutral-600 transition-colors focus-visible:outline-none [&>svg]:size-3.5',\n        className,\n      )}\n      {...props}\n    >\n      {children}\n    </a>\n  );\n}\n\n/** Grid of link columns. */\nfunction FooterColumns({ className, ...props }: ComponentProps<'div'>) {\n  return (\n    <div\n      className={cn('grid grid-cols-2 gap-8 sm:grid-cols-3 lg:grid-cols-4', className)}\n      {...props}\n    />\n  );\n}\n\n/** One link column. `title` becomes the list's accessible name. */\nfunction FooterColumn({\n  className,\n  title,\n  children,\n  ...props\n}: ComponentProps<'nav'> & { title: string }) {\n  return (\n    <nav aria-label={title} className={cn('flex flex-col gap-3', className)} {...props}>\n      <Label1 className='text-neutral font-semibold'>{title}</Label1>\n      <ul className='flex list-none flex-col gap-2.5 p-0'>{children}</ul>\n    </nav>\n  );\n}\n\n/** One link within a column. Renders its own list item. */\nfunction FooterLink({ className, children, ...props }: ComponentProps<'a'>) {\n  return (\n    <li className='list-none'>\n      <a\n        className={cn(\n          'focus-visible:shadow-focus-primary hover:text-primary rounded-sm text-neutral-600 no-underline transition-colors hover:underline focus-visible:outline-none',\n          className,\n        )}\n        {...props}\n      >\n        <Body2>{children}</Body2>\n      </a>\n    </li>\n  );\n}\n\n/** Attribution column, for department marks and \"powered by\" content. */\nfunction FooterAttribution({ className, ...props }: ComponentProps<'div'>) {\n  return <div className={cn('flex flex-col gap-3', className)} {...props} />;\n}\n\n/**\n * The 52px primary strip.\n *\n * `children` sits on the left, `actions` on the right — policy links, usually.\n */\nfunction FooterBottom({\n  className,\n  actions,\n  children,\n  ...props\n}: ComponentProps<'div'> & { actions?: ReactNode }) {\n  return (\n    <div className={cn('bg-primary text-primary-foreground', className)} {...props}>\n      <div className='mx-auto flex min-h-13 max-w-[1440px] flex-wrap items-center justify-between gap-x-6 gap-y-2 px-4 py-3 sm:px-6'>\n        <Label2>{children}</Label2>\n        {actions && <div className='flex flex-wrap items-center gap-x-6 gap-y-2'>{actions}</div>}\n      </div>\n    </div>\n  );\n}\n\n/** A link in the bottom strip. */\nfunction FooterBottomLink({ className, children, ...props }: ComponentProps<'a'>) {\n  return (\n    <a\n      className={cn(\n        'focus-visible:shadow-focus-neutral rounded-sm no-underline transition-opacity hover:underline focus-visible:outline-none',\n        className,\n      )}\n      {...props}\n    >\n      <Label2>{children}</Label2>\n    </a>\n  );\n}\n\nexport {\n  Footer,\n  FooterBody,\n  FooterBrand,\n  FooterSocial,\n  FooterSocialLink,\n  FooterColumns,\n  FooterColumn,\n  FooterLink,\n  FooterAttribution,\n  FooterBottom,\n  FooterBottomLink,\n};\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}
