"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { useSliderContext } from "./use-slider-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/slider/slider-marker.tsx
var splitMarkerProps = createSplitProps();
var SliderMarker = forwardRef((props, ref) => {
	const [markerProps, localProps] = splitMarkerProps(props, ["value"]);
	const mergedProps = mergeProps(useSliderContext().getMarkerProps(markerProps), localProps);
	return /* @__PURE__ */ jsx(ark.span, {
		...mergedProps,
		ref
	});
});
SliderMarker.displayName = "SliderMarker";
//#endregion
export { SliderMarker };
