UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

15 lines (12 loc) 473 B
'use client'; import React from 'react'; import { Portal } from './Portal.mjs'; function OptionalPortal({ withinPortal = true, children, ...others }) { if (withinPortal) { return /* @__PURE__ */ React.createElement(Portal, { ...others }, children); } return /* @__PURE__ */ React.createElement(React.Fragment, null, children); } OptionalPortal.displayName = "@mantine/core/OptionalPortal"; export { OptionalPortal }; //# sourceMappingURL=OptionalPortal.mjs.map