> ## Documentation Index
> Fetch the complete documentation index at: https://velt.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup

<Tabs>
  <Tab title="React / Next.js">
    <Steps titleSize="h2">
      <Step title="Import Presence Component">
        Import the `Presence` component from the React library.

        ```js theme={null}
        import { VeltPresence } from '@veltdev/react';
        ```
      </Step>

      <Step title="Add Presence Component">
        Add it anywhere you want to see the `User` avatars.

        ```js theme={null}
        <VeltPresence />
        ```

        This component renders the avatars of `Users` on the same document in your web app. We automactically detect when `Users` are active on the document and render their avatars.
      </Step>

      <Step title="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.
      </Step>
    </Steps>
  </Tab>

  <Tab title="Other Frameworks">
    <Steps titleSize="h2">
      <Step title="Place the <velt-presence> component">
        Place the component wherever you want the avatars to appear.

        ```html theme={null}
        <velt-presence></velt-presence>
        ```
      </Step>

      <Step title="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.
      </Step>
    </Steps>
  </Tab>
</Tabs>

<RequestExample>
  ```js React theme={null}
  import { VeltPresence } from '@veltdev/react';

  export default function App() {

    return (
      <div className="toolbar">
        <VeltPresence />
      </div>
    );
  }
  ```

  ```html HTML theme={null}
  <!DOCTYPE html>
  <html lang="en">
    <head>
      <title>Presence documentation</title>
    </head>
    <body>
      <div class="toolbar">
        <velt-presence></velt-presence>
      </div>
    </body>
  </html>
  ```
</RequestExample>
