Skip to content
cookie-banner / 5.0.30

cookie-banner 5.0.30

Install from the command line:
Learn more about npm packages
$ npm install @dusk-network/cookie-banner@5.0.30
Install via package.json:
"@dusk-network/cookie-banner": "5.0.30"

About this version

Dusk UI Kit - Organism - CookieBanner

Storybook Docs

Installation

npm i -D @dusk-network/cookie-banner

Usage

<script>
  // import { createEventDispatcher } from "svelte";
  import CookieBanner from "@dusk-network/cookie-banner";
  import Button from "@dusk-network/button";
  import Control from "@dusk-network/control";

  // const dispatch = createEventDispatcher();

  let showBanner = false;
</script>

<Control>
  <Button on:click="{() => (showBanner = !showBanner)}">Toggle Cookie Banner</Button>
</Control>
<CookieBanner acceptLabel="Accept" settingsLabel="Settings" showBanner="{showBanner}" on:settings>
  <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>

Details


Assets

  • cookie-banner-5.0.30.tgz

Download activity

  • Total downloads 5
  • Last 30 days 0
  • Last week 0
  • Today 0