Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tpkn/vue-cookies-warning
- Owner: tpkn
- License: mit
- Created: 2019-12-03T18:23:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-19T06:37:34.000Z (about 5 years ago)
- Last Synced: 2024-11-14T14:32:37.839Z (2 months ago)
- Language: Vue
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!
````