0.4.1 • Published 9 years ago
cookie_toaster v0.4.1
Makes tasty cookies for React.
installation
yarn add cookie_toasteruse
In your root component:
import {CookieToaster} from 'cookie_toaster'
...
<CookieToaster />
...To modify the css you can use the following structure:
.cookie-toaster { // or cookie-toaster-modal, cookie-toaster-top
// topmost div
.cookie-container {
// inner content
h1{
// title css
}
p{
// text css
}
a{
// link css
}
button {
// button css
}
}
}components
- CookieToaster
- CookieToasterTop
- CookieToasterModal
props
- title: String, title (duh)
- text: String, content
- btnAcceptText: String, button label
- btnDeclineText: String, button label
- accept: function, callback to handle accept
- decline: function, callback to handle decline
- popped: Boolean, set this property in your localstorage to track if cookie has been shown for the user
- linkUrl: String, a url
- linkText: String, the text to display for the link
0.4.1
9 years ago
0.3.10
9 years ago
0.3.9
9 years ago
0.3.8
9 years ago
0.3.7
9 years ago
0.3.6
9 years ago
0.3.5
9 years ago
0.3.4
9 years ago
0.3.3
9 years ago
0.3.2
9 years ago
0.3.1
9 years ago
0.3.0
9 years ago
0.2.21
9 years ago
0.2.20
9 years ago
0.2.19
9 years ago
0.2.18
9 years ago
0.2.17
9 years ago
0.2.16
9 years ago
0.2.15
9 years ago
0.2.14
9 years ago
0.2.13
9 years ago
0.2.12
9 years ago
0.2.11
9 years ago
0.2.10
9 years ago
0.2.9
9 years ago
0.2.8
9 years ago
0.2.7
9 years ago
0.2.6
9 years ago
0.2.5
9 years ago
0.2.4
9 years ago