{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "accordion-15",
  "title": "Settings sections",
  "description": "Grouped switch rows revealed inside each panel.",
  "dependencies": [],
  "registryDependencies": [
    "accordion",
    "switch",
    "label"
  ],
  "files": [
    {
      "path": "registry/patterns/accordion/accordion-15.tsx",
      "content": "import {\n  Accordion,\n  AccordionContent,\n  AccordionItem,\n  AccordionTrigger,\n} from '@/components/ui/accordion'\nimport { Label } from '@/components/ui/label'\nimport { Switch } from '@/components/ui/switch'\n\nconst groups = [\n  {\n    value: 'email',\n    title: 'Email notifications',\n    rows: [\n      { id: 'email-product', label: 'Product updates', checked: true },\n      { id: 'email-security', label: 'Security alerts', checked: true },\n      { id: 'email-marketing', label: 'Marketing', checked: false },\n    ],\n  },\n  {\n    value: 'push',\n    title: 'Push notifications',\n    rows: [\n      { id: 'push-mentions', label: 'Mentions', checked: true },\n      { id: 'push-comments', label: 'Comments', checked: false },\n    ],\n  },\n]\n\nexport function Accordion15() {\n  return (\n    <Accordion defaultValue={['email']} className=\"w-full max-w-md\">\n      {groups.map((group) => (\n        <AccordionItem key={group.value} value={group.value}>\n          <AccordionTrigger>{group.title}</AccordionTrigger>\n          <AccordionContent>\n            <div className=\"flex flex-col gap-4\">\n              {group.rows.map((row) => (\n                <div key={row.id} className=\"flex items-center justify-between\">\n                  <Label htmlFor={row.id} className=\"font-normal\">\n                    {row.label}\n                  </Label>\n                  <Switch id={row.id} defaultChecked={row.checked} />\n                </div>\n              ))}\n            </div>\n          </AccordionContent>\n        </AccordionItem>\n      ))}\n    </Accordion>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/flx/patterns/accordion/accordion-15.tsx"
    }
  ],
  "type": "registry:block"
}