Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tpkn/vue-cookies-warning

That annoying little bar at the page footer, wrapped into Vue component
https://github.com/tpkn/vue-cookies-warning

Last synced: 6 days ago
JSON representation

That annoying little bar at the page footer, wrapped into Vue component

Awesome Lists containing this project

README

        

# Vue Cookies Warning

That annoying little bar at the page footer, wrapped into Vue component

## Props

### cookie_name
**Type**: _Boolean_
**Default**: `cookies-accepted`
Cookie name that will store the users choice

### expires
**Type**: _String_
**Default**: `Fri, 31 Dec 9999 23:59:59 GMT`
Cookie expiration date

### animate
**Type**: _Boolean_
**Default**: `true`
To disable expand/collapse animation:
```html

```

### theme
**Type**: _String_
**Default**: `default`
Warning custom style class
```html

.my-custom-style {
padding: 10px;
font-size: 50px;
background-color: magenta;
}

```

## Events

### accepted
Fires right after the user clicks whatever you place inside `acceptButton` slot

## Usage

```html

We are using cookies for blah-blah-blah. It helps us to blah-blah-blah our service. Please,

ACCEPT EVERYTHING THE HELL WE WANT!

````