Docs/Triggers

Triggers

Every trigger hook shares one contract: it accepts an onOpenChange callback and calls it with true once its condition is met. Pass any component's state setter and the two wire together with no glue code.

Available hooks

HookDescription
useTimerTriggerOpens after a fixed delay.
useScrollTriggerOpens once the user scrolls past a page depth.
useExitTriggerOpens when the mouse moves toward the top of the viewport.
useInactivityTriggerOpens after the user has been idle for a duration.
usePersistenceTracks whether a visitor already saw a popup, via localStorage.