{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "slider",
  "type": "registry:ui",
  "description": "Select a numeric value within a range using a slider.",
  "dependencies": [
    "@base-ui/react"
  ],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "components/ui/slider.tsx",
      "content": "\"use client\"\r\n\r\nimport * as React from \"react\"\r\nimport { Slider as BaseSlider } from \"@base-ui/react/slider\"\r\nimport { cn } from \"@/lib/utils\"\r\n\r\ntype SliderRootProps = React.ComponentPropsWithoutRef<typeof BaseSlider.Root>\r\n\r\ntype SliderA11yProps =\r\n    | { \"aria-label\": string; \"aria-labelledby\"?: string; id?: string }\r\n    | { \"aria-labelledby\": string; \"aria-label\"?: string; id?: string }\r\n    | { id: string; \"aria-label\"?: string; \"aria-labelledby\"?: string }\r\n\r\ntype SliderProps = Omit<SliderRootProps, \"aria-label\" | \"aria-labelledby\" | \"id\"> & SliderA11yProps\r\n\r\nconst Slider = React.forwardRef<\r\n    React.ComponentRef<typeof BaseSlider.Root>,\r\n    SliderProps\r\n>(({ className, ...props }, ref) => (\r\n    <BaseSlider.Root\r\n        ref={ref}\r\n        className={cn(\r\n            \"relative flex w-full touch-none select-none items-center\",\r\n            className\r\n        )}\r\n        {...props}\r\n    >\r\n        <BaseSlider.Control className=\"flex w-full touch-none items-center select-none\">\r\n            <BaseSlider.Track className=\"relative h-3 w-full grow overflow-hidden rounded-base border-2 border-black bg-white\">\r\n                <BaseSlider.Indicator className=\"h-full rounded-s-base bg-main\" />\r\n            </BaseSlider.Track>\r\n            <BaseSlider.Thumb className=\"block h-6 w-6 rounded-full border-2 border-black bg-main focus-brutal disabled:pointer-events-none disabled:opacity-50\" />\r\n        </BaseSlider.Control>\r\n    </BaseSlider.Root>\r\n))\r\nSlider.displayName = \"Slider\"\r\n\r\nexport { Slider }\r\n",
      "type": "registry:ui"
    }
  ]
}