{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "segmented-control",
  "title": "Segmented control",
  "author": "superzero11 <https://github.com/superzero11/uiset>",
  "description": "One choice among a few, in a row with a moving indicator.",
  "dependencies": [
    "@ui-sdk/core@0.1.0-beta.5",
    "@ui-sdk/react@0.1.0-beta.5"
  ],
  "registryDependencies": [
    "https://uiset.dev/r/uiset.json"
  ],
  "files": [
    {
      "path": "registry/uiset/ui/segmented-control.tsx",
      "content": "\"use client\"\n\nimport {\n  SegmentedControl as SegmentedControlRoot,\n  SegmentedControlIndicator,\n  SegmentedControlItem,\n} from \"@ui-sdk/react/segmented-control\"\nimport type * as React from \"react\"\n\nfunction SegmentedControl({\n  children,\n  ...props\n}: React.ComponentProps<typeof SegmentedControlRoot>) {\n  return (\n    <SegmentedControlRoot {...props}>\n      {typeof children === \"function\" ? (\n        (state) => (\n          <>\n            <SegmentedControlIndicator />\n            {children(state)}\n          </>\n        )\n      ) : (\n        <>\n          <SegmentedControlIndicator />\n          {children}\n        </>\n      )}\n    </SegmentedControlRoot>\n  )\n}\n\nexport { SegmentedControl, SegmentedControlIndicator, SegmentedControlItem }\nexport { createSegmentedControlController } from \"@ui-sdk/react/segmented-control\"\n",
      "type": "registry:ui",
      "target": "@ui/segmented-control.tsx"
    }
  ],
  "type": "registry:ui"
}