import { cs } from "../utils/styles.js";
import "../utils/index.js";
import { useStyleConfig } from "../core/theme.js";
import { vui } from "../core/vui.js";
import { TextButton } from "../button/buttons.js";
import "../button/index.js";
import "../core/index.js";
import popoverTrigger_default from "../popover/popoverTrigger.js";
import "../popover/index.js";
import { useMenuContext } from "./context.js";
import { jsx } from "react/jsx-runtime";

//#region src/menu/menuButton.tsx
/** Displays PopoverTrigger as a button. */
const MenuButton = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("Menu", useMenuContext());
	return /* @__PURE__ */ jsx(popoverTrigger_default, {
		as: TextButton,
		className: cs("vui-menuButton", className),
		ref,
		...styles.button,
		...rest
	});
});
MenuButton.displayName = "MenuButton";
var menuButton_default = MenuButton;

//#endregion
export { menuButton_default as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=menuButton.js.map