vue-cookie-box
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

Status

Work in progress...

Usage

Installation

npm install vue-cookie-box --save

Component

<template>

<CookieBox />

<script>

import "vue-cookie-box/dist/vue-cookie-box.css"
import {CookieBox} from "vue-cookie-box"

export default {
  components: {
    CookieBox
  }
}

<style>

/* Or use CookieBox's bannerStyle property. */
.cookie-box-banner {
  background-color: blue;
}

paths (tsconfig)

Don't use path subsitution (e.g. import X from @/src/...) inside src. It breaks emitted typings when imported as npm package.

Ok to use in tests.

Styles

Don't scope styles of components which should accept overrides by consumer.

Todo

  • [] allow custom content via <slot>
  • [] i18n
  • [] make ConsentStoreSource string enum and export it

Contribution

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your unit tests

npm run test:unit

Lints and fixes files

npm run lint

Readme

Keywords

Package Sidebar

Install

npm i vue-cookie-box

Weekly Downloads

1

Version

0.2.2

License

MIT

Unpacked Size

1.32 MB

Total Files

43

Last publish

Collaborators

  • mooori