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
| Hook | Description |
|---|---|
useTimerTrigger | Opens after a fixed delay. |
useScrollTrigger | Opens once the user scrolls past a page depth. |
useExitTrigger | Opens when the mouse moves toward the top of the viewport. |
useInactivityTrigger | Opens after the user has been idle for a duration. |
usePersistence | Tracks whether a visitor already saw a popup, via localStorage. |