beyonk-group / gdpr-cookie-consent-banner

A GDPR compliant cookie consent banner implementation
MIT License
248 stars 42 forks source link

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

Open escapingSamsara opened 10 months ago

escapingSamsara commented 10 months ago

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 commented 8 months ago

In your component :

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

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

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