cookie-banner
/
5.0.4
cookie-banner 5.0.4
Install from the command line:
Learn more about npm packages
$ npm install @dusk-network/cookie-banner@5.0.4
Install via package.json:
"@dusk-network/cookie-banner": "5.0.4"
About this version
npm i -D @dusk-network/cookie-banner
<script>
import CookieBanner from "@dusk-network/cookie-banner";
import Button from "@dusk-network/button";
import Control from "@dusk-network/control";
let showBanner;
</script>
<Control>
<Button on:click="{() => (showBanner = !showBanner)}">Toggle Cookie Banner</Button>
</Control>
<CookieBanner acceptLabel="Accept" settingsLabel="Settings" showBanner="{showBanner}">
<p>
We and selected partners and related companies, use cookies and similar technologies as
specified in our Cookies Policy. You agree to consent to the use of these technologies by
clicking Accept, or by continuing to browse this website. You can learn more about how we use
cookies and set cookie preferences in Settings.
</p>
</CookieBanner>