Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i add the props (if i want to use custom props) to the banner ? #60

Open
escapingSamsara opened this issue Oct 27, 2023 · 2 comments

Comments

@escapingSamsara
Copy link

Hello !

How can i add the props object to the banner component in case i want to use custom props.

When i add the component like described in the readme:

how can i change the cookie settings via the prop object ?
(i am asking because this is not shown)

@christianmeichtry
Copy link

In your component :

<GdprBanner {...props} on:analytics={initAnalytics} />

<script>
    const props = {
  /**
   * You must set the cookie name.
   **/
  cookieName: 'beyonk_gdpr',

@antony
Copy link
Member

antony commented Feb 12, 2024

Not sure what you mean by props - do you mean different options in the list?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants