{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "settings-section",
  "type": "registry:component",
  "title": "Settings section",
  "description": "Group related fields beside their explanation, with room for save feedback and actions.",
  "categories": [
    "layout"
  ],
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/registry/overtrue/settings-section.tsx",
      "type": "registry:component",
      "target": "components/overtrue/settings-section.tsx",
      "content": "import { useId, type ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\n/** A responsive form section: explanation first, related fields beside it. */\nexport function SettingsSection({\n  title,\n  description,\n  children,\n  footer,\n  className,\n}: {\n  title: string;\n  description?: ReactNode;\n  children: ReactNode;\n  footer?: ReactNode;\n  className?: string;\n}) {\n  const id = useId();\n  return (\n    <section\n      data-slot=\"settings-section\"\n      aria-labelledby={id}\n      className={cn(\n        \"@container min-w-0 border-b border-border py-6 first:pt-0 last:border-0\",\n        className,\n      )}\n    >\n      <div className=\"grid min-w-0 gap-5 @xl:grid-cols-[minmax(0,1fr)_minmax(0,2fr)] @xl:gap-10\">\n        <div>\n          <h2 id={id} className=\"m-0 text-sm font-semibold text-foreground\">\n            {title}\n          </h2>\n          {description && (\n            <div className=\"mt-2 max-w-sm text-xs leading-5 text-muted-foreground\">\n              {description}\n            </div>\n          )}\n        </div>\n        <div data-slot=\"settings-section-fields\" className=\"min-w-0 space-y-4\">\n          {children}\n          {footer && (\n            <div\n              data-slot=\"settings-section-footer\"\n              className=\"flex flex-wrap items-center justify-end gap-3 pt-2 text-xs text-muted-foreground\"\n            >\n              {footer}\n            </div>\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/components/settings-section. Requires an initialized shadcn/ui project with Tailwind CSS v4."
}
