import { VeltPresence } from '@veltdev/react';

export default function App() {

  return (
    <div className="toolbar">
        flockMode={true} {/* 1) Enable Follow Me Mode */}

Enable Follow Me mode on Presence

Enable Follow Me mode feature.

 <VeltPresence flockMode={true} />

You need to add the Presence feature to trigger Follow Me mode. This will enable Follow Me mode as an option for your users globally, wherever Presence is shown.

To start the shared Follow Me session, click on a user’s avatar to start following them.


Test Integration

Test it out by opening the target page in two browsers with two different users logged in.

You should see the avatars of the users rendered where you added the Presence component. Now click on any avatar to start following them.