# Custom CTA

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

```typescript
'use client';

import { OneTap, SyncstreamProvider } from "syncstream-ai";
import "syncstream-ai/dist/index.css";

export default function App() {
  return (
    <SyncstreamProvider
      campaignId="EXAMPLE_CAMPAIGN_ID"
      signInRequired
    >
      <OneTap 
        spotifyDefaultLink="spotify:album:1HOMjYmPvDpCNbb44JnFaa" 
        spotifyFreeAudioUrl={"https://boa-v2.vercel.app/audio/song.mp3"}
        cta={{
	  url: "https://play.syncstream.ai",
	  text: "Sign in to Play Game"
        }}
      />
    </SyncstreamProvider>
  );
}
```

{% endtab %}

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

```typescript
import React from 'react';
import { OneTap, SyncstreamProvider } from "syncstream-ai";
import "syncstream-ai/dist/index.css";

export default function App() {
  return (
    <SyncstreamProvider
      campaignId="EXAMPLE_CAMPAIGN_ID"
      signInRequired
    >
      <OneTap 
        spotifyDefaultLink="spotify:album:1HOMjYmPvDpCNbb44JnFaa" 
        spotifyFreeAudioUrl={"https://boa-v2.vercel.app/audio/song.mp3"}
        cta={{
	  url: "https://play.syncstream.ai",
	  text: "Sign in to Play Game"
        }}
      />
    </SyncstreamProvider>
  );
}
```

{% endtab %}
{% endtabs %}

The `<OneTap />` component accepts a prop named `cta`.

| Property | Description                                                                                                                   |
| -------- | ----------------------------------------------------------------------------------------------------------------------------- |
| cta      | <p>Optional. <br>{ url: string, text: string }</p><p>text: Custom CTA button text.<br>url: Custom CTA url (optional).<br></p> |

## User Experience

After signing in successfully, a custom CTA button will appear. When you click this button, the `cta.url` will open in a new tab.

To learn more about the user experience on Spotify and Apple, click here: [Spotify](/less-than-onetap-greater-than/spotify.md#user-experience) | [Apple](/less-than-onetap-greater-than/apple-music.md#user-experience)

<figure><img src="/files/A4YrF4uGwbXobEsvKAM2" alt=""><figcaption></figcaption></figure>


---

# 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-onetap-greater-than/custom-cta.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.
