Open source · React infrastructure
Reoverlay
A tiny, typed modal manager for React with one top-level container and a small imperative API for opening, stacking, and closing modals from anywhere.
The problem
Modal state rarely belongs to one component.
Authentication prompts, destructive confirmations, and global interceptors often need to open outside the component hierarchy that owns their UI. Reoverlay provides one top-level container and a deliberately small API for coordinating those moments.
The approach
A focused API with escape hatches.
Consumers can open a modal by component, element, or configured name; stack multiple modals; close a specific modal or the active one; and bring their own visual shell when the default wrapper is not appropriate.
Reoverlay.showModal(ConfirmModal, {
message: 'Archive this item?',
onConfirm: () => Reoverlay.hideModal(),
})Production details
Typed, accessible, and small by design.
The package includes typed props, optional named modal configuration, stack-aware close behavior, Escape and outside-click handling, accessible dialog attributes, and a default animated wrapper that can be replaced entirely.