Skip to content

Popup ​

Popup foundation combining overlay, placement, close behavior, safe area, and destroy policy.

Runtime ownership ​

usePopupRoot comes from @varo-ui/headless; H5 and Weapp implement placement and safe area separately.

Demo ​

Package@varo-ui/headless

Parts ​

PartRole
PopupRootVisibility, overlay, content, close, and placement

State and events ​

  • State:visible, position, overlay, closeable, round, and destroyOnClose
  • Events:update:visible, visibleChange, close, and clickOverlay.

Platform notes

Weapp safe area and H5 viewport adapt separately while public state stays aligned.