/**
 * Copyright IBM Corp. 2020, 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

import { __toESM } from "../../_virtual/_rolldown/runtime.js";
import { require_classnames } from "../../node_modules/classnames/index.js";
import { pkg } from "../../settings.js";
import React from "react";
import PropTypes from "prop-types";

//#region src/components/TooltipTrigger/TooltipTrigger.tsx
/**
* Copyright IBM Corp. 2023, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
const blockClass = `${pkg.prefix}--tooltip-trigger`;
const componentName = "TooltipTrigger";
/**
* This is an tooltip trigger as Carbon Tooltip requires an active element to work but provides
* no blanked button.
*/
const TooltipTrigger = React.forwardRef(({ children, className, ...rest }, ref) => {
	return /* @__PURE__ */ React.createElement("button", {
		type: "button",
		ref,
		...rest,
		className: (0, import_classnames.default)(blockClass, className)
	}, children);
});
TooltipTrigger.displayName = componentName;
TooltipTrigger.propTypes = {
	children: PropTypes.node,
	className: PropTypes.string
};

//#endregion
export { TooltipTrigger };