About
An example of using usePresenceData to pass custom data through AnimatePresence to exiting elements.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds usePresenceData to your project and fits it to your theme.
Code
How usePresenceData is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client"
import UsePresenceData from "@/components/ui/motion-use-presence-data"
export default function Default() {
return (
<div className="motion-example flex w-full items-center justify-center p-8">
<UsePresenceData />
</div>
)
}








