{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "section-footer",
  "title": "Section Footer",
  "description": "Action bar for a form or card, with helper text on the left and buttons on the right.",
  "dependencies": [
    "class-variance-authority@^0.7.1"
  ],
  "registryDependencies": [
    "@pestoui/style",
    "@pestoui/utils"
  ],
  "files": [
    {
      "path": "pestoui/components/section-footer.tsx",
      "content": "import { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst sectionFooterVariants = cva(\n  \"flex w-full flex-col gap-3 border-t border-border pt-4 sm:flex-row sm:items-center sm:gap-4\",\n  {\n    variants: {\n      align: {\n        /* everything clusters on the right */\n        end: \"sm:justify-end\",\n        /* helper pinned left, actions pinned right */\n        between: \"sm:justify-between\",\n      },\n    },\n    defaultVariants: {\n      align: \"end\",\n    },\n  }\n)\n\n/* Form / card action bar — helper text on the left, buttons on the right.\n   Below sm the buttons stack full-width and square off to rounded-lg, since a\n   full-bleed pill reads as a lozenge rather than a control. */\ntype SectionFooterProps = React.ComponentProps<\"div\"> &\n  VariantProps<typeof sectionFooterVariants> & {\n    /** Action buttons — last child is treated as the primary on mobile. */\n    children: React.ReactNode\n    helper?: React.ReactNode\n  }\n\nfunction SectionFooter({\n  children,\n  helper,\n  align = \"end\",\n  className,\n  ...props\n}: SectionFooterProps) {\n  return (\n    <div\n      data-slot=\"section-footer\"\n      data-align={align ?? \"end\"}\n      className={cn(sectionFooterVariants({ align }), className)}\n      {...props}\n    >\n      {helper ? (\n        <p\n          data-slot=\"section-footer-helper\"\n          className=\"text-caption leading-normal text-pretty text-muted-foreground\"\n        >\n          {helper}\n        </p>\n      ) : null}\n\n      <div\n        data-slot=\"section-footer-actions\"\n        className={cn(\n          \"flex w-full flex-col-reverse gap-2 sm:w-auto sm:flex-row sm:items-center sm:justify-end\",\n          !helper && \"sm:ml-auto\",\n          \"max-sm:[&>*]:w-full max-sm:[&>[data-slot=button]]:rounded-lg\"\n        )}\n      >\n        {children}\n      </div>\n    </div>\n  )\n}\n\nexport { SectionFooter, sectionFooterVariants }\nexport type { SectionFooterProps }\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}