{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "slider",
  "title": "Slider",
  "author": "superzero11 <https://github.com/superzero11/uiset>",
  "description": "A range slider whose track, fill and named thumbs render in one line.",
  "dependencies": [
    "@ui-sdk/core@0.1.0-beta.5",
    "@ui-sdk/react@0.1.0-beta.5"
  ],
  "registryDependencies": [
    "https://uiset.dev/r/uiset.json"
  ],
  "files": [
    {
      "path": "registry/uiset/ui/slider.tsx",
      "content": "\"use client\"\n\nimport {\n  Slider as SliderRoot,\n  SliderControl,\n  SliderIndicator,\n  SliderThumb,\n  SliderTrack,\n  SliderValue,\n} from \"@ui-sdk/react/slider\"\nimport type * as React from \"react\"\n\ntype SliderProps = React.ComponentProps<typeof SliderRoot> & {\n  showValue?: boolean\n  thumbLabels?: string[]\n}\n\nfunction Slider({\n  children,\n  showValue = false,\n  thumbLabels,\n  \"aria-label\": ariaLabel,\n  ...props\n}: SliderProps) {\n  if (children) {\n    return (\n      <SliderRoot aria-label={ariaLabel} {...props}>\n        {children}\n      </SliderRoot>\n    )\n  }\n  const initial = props.value ?? props.defaultValue\n  const count = Array.isArray(initial) ? initial.length : 1\n  const labels = thumbLabels ?? (count === 1 && ariaLabel ? [ariaLabel] : [])\n  return (\n    <SliderRoot aria-label={count > 1 ? ariaLabel : undefined} {...props}>\n      {showValue && <SliderValue />}\n      <SliderControl>\n        <SliderTrack>\n          <SliderIndicator />\n          {Array.from({ length: count }, (_, index) => (\n            // Each thumb of a range shows its own value; without `index` they'd share one.\n            <SliderThumb\n              key={labels[index] ?? `thumb-${index}`}\n              index={index}\n              aria-label={labels[index]}\n            />\n          ))}\n        </SliderTrack>\n      </SliderControl>\n    </SliderRoot>\n  )\n}\n\nexport { Slider, SliderControl, SliderIndicator, SliderThumb, SliderTrack, SliderValue }\nexport type { SliderProps }\nexport { createSliderController } from \"@ui-sdk/react/slider\"\n",
      "type": "registry:ui",
      "target": "@ui/slider.tsx"
    }
  ],
  "type": "registry:ui"
}