{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-spectral-toggle",
  "type": "registry:ui",
  "title": "Spectral Toggle",
  "description": "Reusable controlled graphite button with scoped material artwork.",
  "dependencies": [],
  "registryDependencies": [
    "https://pluginui.com/r/gallery-spectral-control-styles.json",
    "https://pluginui.com/r/core-toggle-headless.json"
  ],
  "files": [
    {
      "path": "components/ui/spectral-toggle.tsx",
      "content": "/**\n * Source: https://maru.audio/ui-kit/spectral-toggle\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 { ToggleHeadless } from \"@/components/ui/toggle-headless\"\nimport \"@/components/ui/spectral-controls.css\"\nexport interface SpectralToggleProps {\n  checked: boolean\n  onChange: (checked: boolean) => void\n  label: string\n  text?: string\n  round?: boolean\n  disabled?: boolean\n}\nexport function SpectralToggle({\n  checked,\n  onChange,\n  label,\n  text = label,\n  round = false,\n  disabled = false,\n}: SpectralToggleProps) {\n  return (\n    <ToggleHeadless\n      className=\"spectral-toggle\"\n      data-round={round || undefined}\n      checked={checked}\n      onChange={onChange}\n      aria-label={label}\n      disabled={disabled}\n    >\n      {({ on }) => <span data-on={on || undefined}>{text}</span>}\n    </ToggleHeadless>\n  )\n}\n",
      "type": "registry:component",
      "target": "@ui/spectral-toggle.tsx"
    }
  ]
}
