{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "elastic-slider-demo",
  "title": "Elastic Slider Demo",
  "description": "A worked example of Elastic Slider: A precise slider with a small amount of give at either end. The current value stays visible and the control works without a pointer.",
  "dependencies": [
    "lucide-react@^1.31.0"
  ],
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/elastic-slider.json"
  ],
  "files": [
    {
      "path": "components/demos/elastic-slider-demo.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Volume2 } from \"lucide-react\"\n\nimport { ElasticSlider } from \"@/registry/default/elastic-slider/elastic-slider\"\n\nexport function ElasticSliderDemo() {\n  const [volume, setVolume] = React.useState(68)\n\n  return (\n    <div className=\"demo-content slider-demo\">\n      <div className=\"preview-heading\">\n        <span className=\"preview-icon\">\n          <Volume2 aria-hidden=\"true\" size={20} />\n        </span>\n        <div>\n          <strong>Notification volume</strong>\n          <p>Changes play immediately.</p>\n        </div>\n      </div>\n      <ElasticSlider\n        label=\"Volume\"\n        value={volume}\n        onValueChange={setVolume}\n        className=\"[--background:oklch(0.215_0.018_58)] [--foreground:oklch(0.975_0.012_84)] [--muted:oklch(1_0_0/14%)] [--primary:oklch(0.78_0.16_128)]\"\n      />\n    </div>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}