{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-grain-knob",
  "type": "registry:ui",
  "title": "Compact luminous ring dial",
  "description": "Controlled compact grain artwork with shared gestures.",
  "dependencies": [
    "maruaudio@>=0.0.3 <0.1.0"
  ],
  "registryDependencies": [
    "https://pluginui.com/r/gallery-grain-control-styles.json",
    "https://pluginui.com/r/core-knob.json"
  ],
  "files": [
    {
      "path": "components/ui/grain-knob.tsx",
      "content": "/**\n * Source: https://maru.audio/ui-kit/grain-knob\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 type { CSSProperties } from \"react\"\nimport \"@/components/grain-controls.css\"\nimport {\n  Knob,\n  type KnobProps,\n  type KnobDesignState,\n} from \"@/components/ui/knob\"\n\nexport interface GrainKnobProps extends KnobProps {\n  accent?: string\n}\n\n/** Pure artwork. The shared Knob owns values, gestures, formatting and reset. */\nexport function GrainKnobDesign({\n  value01,\n  size,\n  disabled,\n  accent = \"#1ccbe2\",\n}: KnobDesignState & Pick<GrainKnobProps, \"accent\">) {\n  return (\n    <div\n      className=\"grain-knob\"\n      style={\n        { width: size, height: size, \"--grain-accent\": accent } as CSSProperties\n      }\n      aria-disabled={disabled || undefined}\n    >\n      <svg viewBox=\"0 0 48 48\" aria-hidden=\"true\">\n        <circle\n          cx=\"24\"\n          cy=\"24\"\n          r=\"21\"\n          fill=\"none\"\n          stroke=\"#484d4f\"\n          strokeWidth=\"4\"\n        />\n        <circle\n          cx=\"24\"\n          cy=\"24\"\n          r=\"21\"\n          fill=\"none\"\n          stroke=\"var(--grain-accent)\"\n          strokeWidth=\"3.5\"\n          strokeDasharray={`${value01 * 104} 132`}\n          transform=\"rotate(135 24 24)\"\n        />\n      </svg>\n      <span className=\"grain-knob__cap\" />\n      <span\n        className=\"grain-knob__rotor\"\n        style={{ transform: `rotate(${-135 + value01 * 270}deg)` }}\n      >\n        <i />\n      </span>\n    </div>\n  )\n}\n\n/** Convenience visual preset with the ordinary Knob contract. */\nexport function GrainKnob({\n  label = \"Amount\",\n  size = 48,\n  accent = \"#1ccbe2\",\n  ...control\n}: GrainKnobProps) {\n  return (\n    <Knob\n      {...control}\n      size={size}\n      label={label}\n      hideLabel\n      hideValue\n      renderDesign={(state) => <GrainKnobDesign {...state} accent={accent} />}\n    />\n  )\n}\n",
      "type": "registry:component",
      "target": "@ui/grain-knob.tsx"
    }
  ]
}
