"use client"; import { Slider as SliderPrimitive } from "@base-ui/react/slider"; import { cn } from "../../../lib/utils"; import { SliderControlContent } from "./slider-parts"; import { useSliderRuntime } from "./slider-runtime"; import type { SliderProps } from "./slider-types"; function Slider({ className, defaultValue, disabled, getAriaLabel, largeStep, markerCount, markerValues, onBlurCapture, onPointerCancelCapture, onPointerDownCapture, onPointerUpCapture, onValueChange, onValueCommitted, orientation = "horizontal", resetValue, showFill = true, snapValues, step = 1, thumbAlignment = "edge", variant = "continuous", value, min = 0, max = 100, ...props }: SliderProps) { const { handleThumbDoubleClick, handleValueChange, pointerDrag, resolvedMarkerCount, sliderValue, } = useSliderRuntime({ defaultValue, disabled, largeStep, markerCount, max, min, onBlurCapture, onPointerCancelCapture, onPointerDownCapture, onPointerUpCapture, onValueChange, onValueCommitted, resetValue, snapValues, step, value, variant, }); return ( ); } export { SliderInteractionProvider } from "./slider-interaction"; export type { SliderInteractionChangeDetails } from "./slider-interaction"; export { Slider };