Presence | kamod motionSkip to content

Docs

Presence

Keep children mounted until exit animations finish.

Presence coordinates enter/exit phases for overlays, toasts, and conditional panels. Child Motion nodes register with the presence context so unmount waits for exit animations.

Toast dismiss

@kamod-ch/motion/presence
Saved to your workspace

API

<Presence show={open} onExitComplete={() => setOpen(false)}>
  <Motion exit={fade.exit}>…</Motion>
</Presence>

When prefers-reduced-motion: reduce is active, presence skips spatial motion and completes exits immediately — see useReducedMotion.