{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-lavender-fader",
  "type": "registry:ui",
  "title": "Twin pearl fader",
  "description": "Reusable pale lavender material with controlled state.",
  "dependencies": [
    "maruaudio@>=0.0.3 <0.1.0"
  ],
  "registryDependencies": [
    "https://pluginui.com/r/core-fader.json",
    "https://pluginui.com/r/gallery-lavender-control-styles.json"
  ],
  "files": [
    {
      "path": "components/ui/lavender-fader.tsx",
      "content": "/**\n * Source: https://maru.audio/ui-kit/lavender-fader\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 \"@/components/ui/lavender-controls.css\"\nimport {\n  Fader,\n  type FaderProps,\n  type FaderDesignState,\n} from \"@/components/ui/fader\"\n\nexport interface LavenderFaderProps extends FaderProps {\n  readout?: string\n}\n\n/** Pure artwork; the shared Fader owns track gestures and formatted values. */\nexport function LavenderFaderDesign({\n  value01,\n  length,\n  capInset,\n  disabled,\n}: FaderDesignState) {\n  return (\n    <div\n      className=\"lavender-fader\"\n      style={{ width: length, height: 28 }}\n      aria-disabled={disabled || undefined}\n    >\n      <>\n        <span className=\"lavender-fader__rail\" aria-hidden=\"true\" />\n        <span\n          className=\"lavender-fader__fill\"\n          aria-hidden=\"true\"\n          style={{\n            width: `calc(${value01 * 100}% + ${(1 - value01 * 2) * (capInset / 2)}px)`,\n          }}\n        />\n        <span\n          className=\"lavender-fader__thumb\"\n          aria-hidden=\"true\"\n          style={{\n            left: `calc(${value01 * 100}% + ${(1 - value01 * 2) * (capInset / 2)}px)`,\n          }}\n        >\n          <i />\n          <i />\n        </span>\n      </>\n    </div>\n  )\n}\n\n/** Convenience visual preset with the ordinary Fader contract. */\nexport function LavenderFader({\n  label = \"Level\",\n  length = 112,\n  readout,\n  orientation = \"horizontal\",\n  ...control\n}: LavenderFaderProps) {\n  return (\n    <Fader\n      {...control}\n      label={label}\n      hideLabel\n      hideValue\n      length={length}\n      orientation={orientation}\n      thickness={28}\n      capInset={36}\n      format={readout === undefined ? control.format : () => readout}\n      renderDesign={(state) => <LavenderFaderDesign {...state} />}\n    />\n  )\n}\n",
      "type": "registry:component",
      "target": "@ui/lavender-fader.tsx"
    }
  ]
}
