UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

15 lines (12 loc) 600 B
'use client'; import { jsx } from 'react/jsx-runtime'; import { twMerge } from 'tailwind-merge'; import { mergeDeep } from '../../helpers/merge-deep.mjs'; import { useModalContext } from './ModalContext.mjs'; const ModalBody = ({ children, className, theme: customTheme = {}, ...props }) => { const { theme: rootTheme, popup } = useModalContext(); const theme = mergeDeep(rootTheme.body, customTheme); return /* @__PURE__ */ jsx("div", { className: twMerge(theme.base, popup && [theme.popup], className), ...props, children }); }; export { ModalBody }; //# sourceMappingURL=ModalBody.mjs.map