"use client";
import { ark } from "../factory.js";
import { useFieldContext } from "../field/use-field-context.js";
import { useSwitchContext } from "./use-switch-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/switch/switch-hidden-input.tsx
var SwitchHiddenInput = forwardRef((props, ref) => {
	const mergedProps = mergeProps(useSwitchContext().getHiddenInputProps(), props);
	const field = useFieldContext();
	return /* @__PURE__ */ jsx(ark.input, {
		"aria-describedby": field?.ariaDescribedby,
		...mergedProps,
		ref
	});
});
SwitchHiddenInput.displayName = "SwitchHiddenInput";
//#endregion
export { SwitchHiddenInput };
