{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-disc-selector",
  "type": "registry:ui",
  "title": "Disc Selector",
  "description": "Portable controlled disc console artwork.",
  "dependencies": [
    "@base-ui/react",
    "maruaudio@>=0.0.3 <0.1.0"
  ],
  "registryDependencies": [
    "https://pluginui.com/r/gallery-disc-control-styles.json",
    "https://pluginui.com/r/core-segmented-control.json"
  ],
  "files": [
    {
      "path": "components/ui/disc-selector.tsx",
      "content": "/**\n * Source: https://maru.audio/ui-kit/disc-selector\n * Copyright © [Maru](https://maru.audio)\n *\n * Maru UI Kit — https://maru.audio/ui-kit\n *\n * Installed from the Maru UI registry. This file is yours now: edit it\n * freely, it will not be overwritten unless you re-run the add command.\n *\n * Keep this item’s companion files and CSS imports together. Dependencies\n * declared by the registry are installed with the source.\n */\nimport { SegmentedControl } from \"@/components/ui/segmented-control\"\nimport \"@/components/ui/disc-controls.css\"\nexport interface DiscSelectorProps {\n  value: number\n  onChange: (value: number) => void\n  label?: string\n  options?: readonly string[]\n  width?: number\n  disabled?: boolean\n}\n/** Four segments recessed into a translucent capsule. Native buttons retain keyboard activation. */\nexport function DiscSelector({\n  value,\n  onChange,\n  label = \"Disc position\",\n  options = [\"First\", \"Second\", \"Third\", \"Fourth\"],\n  width = 264,\n  disabled = false,\n}: DiscSelectorProps) {\n  return (\n    <SegmentedControl\n      unstyled\n      value={String(value)}\n      onValueChange={(next) => onChange(Number(next))}\n      onReselect={(next) => onChange(Number(next))}\n      options={options.map((option, index) => ({\n        value: String(index),\n        label: <span />,\n        \"aria-label\": `${label}: ${option}`,\n      }))}\n      aria-label={label}\n      disabled={disabled}\n      className=\"disc-selector\"\n      style={{ width }}\n    />\n  )\n}\n",
      "type": "registry:component",
      "target": "@ui/disc-selector.tsx"
    }
  ]
}
