{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-graphite-selector",
  "type": "registry:ui",
  "title": "Graphite Selector",
  "description": "Reusable graphite artwork with controlled state and keyboard interaction.",
  "dependencies": [
    "@base-ui/react",
    "maruaudio@>=0.0.3 <0.1.0"
  ],
  "registryDependencies": [
    "https://pluginui.com/r/gallery-graphite-control-styles.json",
    "https://pluginui.com/r/core-segmented-control.json"
  ],
  "files": [
    {
      "path": "components/ui/graphite-selector.tsx",
      "content": "/**\n * Source: https://maru.audio/ui-kit/graphite-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/graphite-controls.css\"\nexport interface GraphiteSelectorProps {\n  value: number\n  onChange: (value: number) => void\n  options?: readonly string[]\n  label?: string\n  width?: number\n  disabled?: boolean\n}\n/** Broad raised keys with native keyboard activation and ordered arrow navigation. */\nexport function GraphiteSelector({\n  value,\n  onChange,\n  options = [\"TUBE\", \"FET\", \"OPTO\"],\n  label = \"Character\",\n  width = 438,\n  disabled = false,\n}: GraphiteSelectorProps) {\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: option,\n        \"aria-label\": `${label}: ${option}`,\n      }))}\n      aria-label={label}\n      disabled={disabled}\n      className=\"graphite-selector\"\n      style={{ width }}\n    />\n  )\n}\n",
      "type": "registry:component",
      "target": "@ui/graphite-selector.tsx"
    }
  ]
}
