{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-obsidian-fader",
  "type": "registry:ui",
  "title": "Obsidian Fader",
  "description": "Controlled portrait console artwork with shared input semantics.",
  "dependencies": [
    "maruaudio@>=0.0.3 <0.1.0",
    "react"
  ],
  "registryDependencies": [
    "https://pluginui.com/r/core-fader.json",
    "https://pluginui.com/r/gallery-obsidian-control-styles.json"
  ],
  "files": [
    {
      "path": "components/ui/obsidian-fader.tsx",
      "content": "/**\n * Source: https://maru.audio/ui-kit/obsidian-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/obsidian-controls.css\"\nimport {\n  Fader,\n  type FaderProps,\n  type FaderDesignState,\n} from \"@/components/ui/fader\"\n\nexport type ObsidianFaderProps = FaderProps\n\n/** Pure artwork; the shared Fader owns track gestures and formatted values. */\nexport function ObsidianFaderDesign({\n  value01,\n  length,\n  orientation,\n  disabled,\n}: FaderDesignState) {\n  return (\n    <div\n      className=\"obsidian-fader\"\n      data-orientation={orientation}\n      style={{ [orientation === \"vertical\" ? \"height\" : \"width\"]: length }}\n      aria-disabled={disabled || undefined}\n    >\n      {\n        <span\n          className=\"obsidian-fader__fill\"\n          style={\n            orientation === \"vertical\"\n              ? { height: `${value01 * 100}%` }\n              : { width: `${value01 * 100}%` }\n          }\n        />\n      }\n    </div>\n  )\n}\n\n/** Convenience visual preset with the ordinary Fader contract. */\nexport function ObsidianFader({\n  label = \"Trim\",\n  length = 145,\n  orientation = \"horizontal\",\n  ...control\n}: ObsidianFaderProps) {\n  return (\n    <Fader\n      {...control}\n      label={label}\n      hideLabel\n      hideValue\n      length={length}\n      orientation={orientation}\n      thickness={orientation === \"vertical\" ? 7 : 6}\n      capInset={4}\n      renderDesign={(state) => <ObsidianFaderDesign {...state} />}\n    />\n  )\n}\n",
      "type": "registry:component",
      "target": "@ui/obsidian-fader.tsx"
    }
  ]
}
