Skip to content
Design System
GitHub

usePresence

v0.8.1

Keeps an element, or list items, on screen while they leave, so exits use the disappear movement instead of vanishing.

Lidar cleaning is due on Courier 2B19.

Use presence note

Install
npx shadcn add @syncrobotic/use-presence

Usage rules

  • Keeps an element (usePresence) or list items (usePresenceList) mounted while they leave, so an exit plays disappear instead of vanishing.
  • It is how alarms fade out of a list and a save bar leaves after Save: not for anything that should simply hide at once.

Changelog

  • 0.8.12026-11-21Showing again mounts in the same render instead of an effect later, so it is safe under the React Compiler. No visible change.
  • 0.8.02026-11-17First release.

How to upgrade