"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { useComboboxContext } from "./use-combobox-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/combobox/combobox-trigger.tsx
var splitTriggerProps = createSplitProps();
var ComboboxTrigger = forwardRef((props, ref) => {
	const [triggerProps, localProps] = splitTriggerProps(props, ["focusable"]);
	const mergedProps = mergeProps(useComboboxContext().getTriggerProps(triggerProps), localProps);
	return /* @__PURE__ */ jsx(ark.button, {
		...mergedProps,
		ref
	});
});
ComboboxTrigger.displayName = "ComboboxTrigger";
//#endregion
export { ComboboxTrigger };
