Introduction
react-marketing-popups is a lightweight React library for building high-converting popouts, banners, and slide-in panels. It ships with built-in trigger behaviours, smooth animations, and localStorage-based persistence so each visitor only sees a popup the right number of times.
Three components, one mental model
Every component — Popout, SlideIn, and Banner — shares the same controlled-visibility API: you own an open boolean in state and pass it in along with onOpenChange. The library never manages state for you, which keeps behaviour predictable and easy to wire into whatever trigger logic your page needs.
Trigger hooks fire the same way
Five hooks — useTimerTrigger, useScrollTrigger, useExitTrigger, useInactivityTrigger, and useTriggerPersistence — all accept an onOpenChange callback, so swapping one trigger for another is a one-line change. See the Triggers section for the full reference.