UNPKG

@wordpress/editor

Version:
29 lines (28 loc) 675 B
// packages/editor/src/components/collab-sidebar/floating-container.js import clsx from "clsx"; import { Stack } from "@wordpress/ui"; import { jsx } from "react/jsx-runtime"; function FloatingContainer({ floating, className, style, children, ...props }) { const isFloating = !!floating; return /* @__PURE__ */ jsx( Stack, { direction: "column", className: clsx(className, { "is-floating": isFloating }), ref: isFloating ? floating.ref : void 0, style: isFloating ? { top: floating.y, ...style } : style, ...props, children } ); } export { FloatingContainer }; //# sourceMappingURL=floating-container.mjs.map