{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "segmented-toggle-group",
  "title": "Segmented toggle group",
  "description": "A segmented control whose pressed fill glides to the next pick.",
  "registryDependencies": [
    "@khaeli/toggle-group",
    "@khaeli/utils"
  ],
  "files": [
    {
      "path": "registry/khaeli/ui/segmented-toggle-group.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nimport { ToggleGroup } from \"@/components/ui/toggle-group\"\n\n// --- SegmentedToggleGroup ---\n// The app's one segmented control: the registry ToggleGroup (role=\"group\",\n// aria-pressed items, roving focus) in foundation.css's segmented look. The\n// pressed segment's raised fill is one shared highlight that glides to the\n// new choice on spring.morph (NavHighlight, Arc's segmented-control motion;\n// instant under reduced motion). Single-select only. Desktop draws the\n// gliding fill; phones keep the item's own pressed colours (foundation.css styles\n// the segmented track from md).\n\nfunction SegmentedToggleGroup({\n  className,\n  children,\n  ...props\n}: React.ComponentProps<typeof ToggleGroup>) {\n  return (\n    <ToggleGroup\n      data-segmented=\"\"\n      highlight\n      className={cn(\n        \"relative [&>[data-slot=toggle-group-item]]:relative [&>[data-slot=toggle-group-item]]:isolate\",\n        className\n      )}\n      {...props}\n    >\n      {children}\n    </ToggleGroup>\n  )\n}\n\nexport { SegmentedToggleGroup }\n",
      "type": "registry:ui"
    }
  ],
  "docs": "Install @khaeli/foundation first: this item's styling lives in its tokens and [data-slot] rules.",
  "type": "registry:ui"
}