{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "tabs-vertical-settings",
  "title": "Tabs Vertical Settings",
  "description": "The settings-page layout with a vertical tab list on the left, ArrowUp and ArrowDown navigation, a heading at the top of each panel and stacking on narrow screens.",
  "registryDependencies": [
    "tabs"
  ],
  "files": [
    {
      "path": "registry/patterns/tabs-vertical-settings/tabs-vertical-settings.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"@/components/ui/tabs\"\n\nexport interface SettingsSection {\n  value: string\n  label: string\n  title: string\n  content: React.ReactNode\n}\n\nexport interface TabsVerticalSettingsProps {\n  sections: SettingsSection[]\n  defaultValue?: string\n  \"aria-label\"?: string\n}\n\n/**\n * The settings-page layout: a vertical tab list on the left and the section on\n * the right. The tab list is `aria-orientation=\"vertical\"`, so ArrowUp and\n * ArrowDown move through it (not Left and Right), each panel starts with a\n * heading of its own, and on narrow screens the list stacks above the panel.\n */\nexport function TabsVerticalSettings({\n  sections,\n  defaultValue,\n  \"aria-label\": ariaLabel = \"Settings sections\",\n}: TabsVerticalSettingsProps) {\n  return (\n    <Tabs\n      orientation=\"vertical\"\n      defaultValue={defaultValue ?? sections[0]?.value}\n      className=\"flex flex-col gap-4 sm:flex-row\"\n    >\n      <TabsList\n        aria-label={ariaLabel}\n        className=\"h-fit w-full flex-col sm:w-44\"\n      >\n        {sections.map((s) => (\n          <TabsTrigger\n            key={s.value}\n            value={s.value}\n            className=\"w-full justify-start\"\n          >\n            {s.label}\n          </TabsTrigger>\n        ))}\n      </TabsList>\n      {sections.map((s) => (\n        <TabsContent key={s.value} value={s.value} className=\"flex-1\">\n          <h3 className=\"mb-3 text-base font-semibold\">{s.title}</h3>\n          {s.content}\n        </TabsContent>\n      ))}\n    </Tabs>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}