UNPKG

streamlit-react-modal

Version:

[![NPM version][npm-image]][npm-url] [![Build][github-build]][github-build-url] ![npm-typescript] [![License][github-license]][github-license-url]

12 lines 517 B
import { __assign } from "tslib"; import * as React from 'react'; import Modal from './Modal'; import ReactDOM from 'react-dom/client'; import * as utils from '../utils/common'; export var StreamlitReactModal = function (props) { var modalParentElement = utils.createModal(); var root = ReactDOM.createRoot(modalParentElement); root.render(React.createElement(Modal, __assign({}, props))); return React.createElement(React.Fragment, null); }; //# sourceMappingURL=StreamlitReactModal.js.map