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