beyonk-group / gdpr-cookie-consent-banner

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

Add `canRejectCookies` to documentation #58

Open jvolker opened 11 months ago

jvolker commented 11 months ago

It took me a while to figure out how to add a "reject cookies" button. Turns out it's already implemented and can be used like this:

<GdprBanner cookieName="foo" description="bar" on:analytics={initAnalytics} canRejectCookies="true" />

It would be great if this were added to the documentation in the Readme.