usePresence

Keeps a thing mounted for ms after open drops so its exit animation can play. closing is true during that tail; style the exit off it.

Source
function usePresence(open: boolean, ms = 340)

API reference

function usePresence(open: boolean, ms = 340)

Related hooks