0.1.1 • Published 4 years ago

vue-cookie-bar v0.1.1

Weekly downloads
13
License
-
Repository
github
Last release
4 years ago

vue-cookie-bar

NPM GitHub

Usage

  1. npm install vue-cookie-bar or yarn add vue-cookie-bar
  2. Add import VueCookieBar from 'vue-cookie-bar somewhere in root of your application (for example App.vue

    <template>
      <div id="app">
    	<img alt="Vue logo" src="./assets/logo.png" />
    	<HelloWorld msg="Welcome to Your Vue.js App" />
    	<cookie-bar />
      </div>
    </template>
    
    <script>
    import HelloWorld from "./components/HelloWorld.vue";
    import CookieBar from "vue-cookie-bar";
    
    export default {
      name: "App",
      components: {
    	HelloWorld,
    	CookieBar
      }
    };
    </script>

Options

  • text
  • acceptText
  • linkText
  • link
  • customLink
  • containered
  • containerWidth

Contributing

  • Run locally: vue serve --open src/components/CookieBar.vue
  • Submit PR