mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-04-25 16:23:31 +02:00
npm image fixes :)
This commit is contained in:
parent
281f0a2bda
commit
e090396f4f
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
A small, simple and customizable cookie consent bar for use in React applications.
|
A small, simple and customizable cookie consent bar for use in React applications.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@ -73,8 +73,8 @@ On of the props (onAccept) is a function, this function will be called after the
|
|||||||
| buttonText | string | I understand | Text to appear on the button |
|
| buttonText | string | I understand | Text to appear on the button |
|
||||||
| cookieName | string | CookieConsent | Name of the cookie used to track whether the user has agreed. |
|
| cookieName | string | CookieConsent | Name of the cookie used to track whether the user has agreed. |
|
||||||
| onAccept | function | () => {} | Function to be called after the accept button has been clicked. |
|
| onAccept | function | () => {} | Function to be called after the accept button has been clicked. |
|
||||||
| style | Object |  | React styling object for the bar. |
|
| style | Object |  | React styling object for the bar. |
|
||||||
| buttonStyle | Object |  | React styling object for the button. |
|
| buttonStyle | Object |  | React styling object for the button. |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ You can use `disableStyles={true}` to disable any built-in styling.
|
|||||||
|
|
||||||
#### rainbows!
|
#### rainbows!
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
If you're crazy enough you can even make a rainbow colored bar:
|
If you're crazy enough you can even make a rainbow colored bar:
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"name": "Rick van Lieshout",
|
"name": "Rick van Lieshout",
|
||||||
"email": "info@rickvanlieshout.com"
|
"email": "info@rickvanlieshout.com"
|
||||||
},
|
},
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "A small, simple and customizable cookie consent bar for use in React applications.",
|
"description": "A small, simple and customizable cookie consent bar for use in React applications.",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user