"use client";
const require_factory = require("../factory.cjs");
const require_use_listbox_context = require("./use-listbox-context.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/listbox/listbox-value-text.tsx
var ListboxValueText = (0, react.forwardRef)((props, ref) => {
	const { children, placeholder, ...localprops } = props;
	const listbox = require_use_listbox_context.useListboxContext();
	const mergedProps = (0, _zag_js_react.mergeProps)(listbox.getValueTextProps(), localprops);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.span, {
		...mergedProps,
		ref,
		children: children || listbox.valueAsString || placeholder
	});
});
ListboxValueText.displayName = "ListboxValueText";
//#endregion
exports.ListboxValueText = ListboxValueText;
