LogoLogo
  • Overview
  • Quickstart
  • <SyncstreamProvider />
  • <OneTap />
    • Spotify
    • Apple Music
    • Presave
      • Apple Music Presave
      • Spotify Presave
    • Custom CTA
  • Utilities
    • Resume
    • Pause
Powered by GitBook
On this page

Was this helpful?

Export as PDF

<SyncstreamProvider />

The SyncstreamProvider component provides streaming service of spotify.

PreviousQuickstartNext<OneTap />

Last updated 5 months ago

Was this helpful?

'use client';

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>
  );
}
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>
  );
}

SyncstreamProvider component takes 2 properties:

Property
Description

campaignId

(Required) Your campaign ID assigned by .

signInRequired

Optional. use this to add a blur overlay and prevent the user from accessing the site without first connecting a streaming provider.

Recoup