# \<SyncstreamProvider />

{% tabs %}
{% tab title="NextJS" %}

<pre class="language-tsx"><code class="lang-tsx"><strong>'use client';
</strong>
import { OneTap, SyncstreamProvider } from "@syncstreamai/syncstream";
import "@syncstreamai/syncstream/dist/index.css";

export default function App() {
  return (
    &#x3C;SyncstreamProvider
      campaignId="EXAMPLE_CAMPAIGN_ID"
      signInRequired
    >
      &#x3C;OneTap spotifyDefaultLink="spotify:artist:2hlmm7s2ICUX0LVIhVFlZQ" />
    &#x3C;/SyncstreamProvider>
  );
}
</code></pre>

{% endtab %}

{% tab title="Create React App" %}

```tsx
import React from 'react';
import { OneTap, SyncstreamProvider } from "@syncstreamai/syncstream";
import "@syncstreamai/syncstream/dist/index.css";

export default function App() {
  return (
    <SyncstreamProvider
      campaignId="EXAMPLE_CAMPAIGN_ID"
      signInRequired
    >
      <OneTap spotifyDefaultLink="spotify:artist:2hlmm7s2ICUX0LVIhVFlZQ" />
    </SyncstreamProvider>
  );
}
```

{% endtab %}
{% endtabs %}

`SyncstreamProvider` component takes 2 properties:

<table><thead><tr><th width="332.5">Property</th><th>Description</th></tr></thead><tbody><tr><td>campaignId</td><td>(Required) Your campaign ID assigned by <a href="https://chat.recoupable.com/">Recoup</a>.</td></tr><tr><td>signInRequired</td><td>Optional. use this to add a blur overlay and prevent the user from accessing the site without first connecting a streaming provider.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://webplayer.recoupable.com/less-than-syncstreamprovider-greater-than.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
