UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

17 lines (13 loc) 521 B
'use client'; 'use strict'; var jsxRuntime = require('react/jsx-runtime'); var Portal = require('./Portal.cjs'); function OptionalPortal({ withinPortal = true, children, ...others }) { if (withinPortal) { return /* @__PURE__ */ jsxRuntime.jsx(Portal.Portal, { ...others, children }); } return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children }); } OptionalPortal.displayName = "@mantine/core/OptionalPortal"; exports.OptionalPortal = OptionalPortal; //# sourceMappingURL=OptionalPortal.cjs.map