@wordpress/components
Version:
UI components for WordPress.
26 lines (25 loc) • 806 B
JavaScript
import deprecated from "@wordpress/deprecated";
import { forwardRef } from "@wordpress/element";
import InternalTooltip from "./index.mjs";
import { jsx } from "react/jsx-runtime";
// packages/components/src/tooltip/deprecated.tsx
function UnforwardedDeprecatedTooltip(props, ref) {
deprecated("wp.components.Tooltip", {
since: "7.3",
version: "7.5",
alternative: "Tooltip from @wordpress/ui"
});
return /* @__PURE__ */ jsx(InternalTooltip, {
...props,
ref
});
}
/**
* Renders floating text when its anchor receives focus or is hovered.
*
* @deprecated Use `Tooltip` from `@wordpress/ui` instead.
*/
const DeprecatedTooltip = forwardRef(UnforwardedDeprecatedTooltip);
DeprecatedTooltip.displayName = "Tooltip";
export { DeprecatedTooltip as default };
//# sourceMappingURL=deprecated.mjs.map