UNPKG

flexium

Version:

A lightweight, signals-based UI framework with cross-platform renderers

17 lines (15 loc) 367 B
interface PortalProps { mount?: HTMLElement; children: any; } /** * <Portal> component renders its children into a different part of the DOM. * Useful for modals, tooltips, etc. * * @example * <Portal mount={document.body}> * <div class="modal">...</div> * </Portal> */ declare function Portal(props: PortalProps): Comment; export { Portal as P };