mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-06-28 06:26:06 +02:00
Compare commits
No commits in common. "7f5989a539b1bf16337fc21f34cd841f0f3a2acf" and "c14e8274ad7c289d4f2663ddecc332523d76b52f" have entirely different histories.
7f5989a539
...
c14e8274ad
@ -1,10 +1,8 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
stories: ["../stories/**/*.stories.@(ts|tsx|js|jsx)"],
|
stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx)'],
|
||||||
addons: [
|
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
|
||||||
// '@storybook/addon-links', '@storybook/addon-essentials'
|
|
||||||
],
|
|
||||||
// https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration
|
// https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration
|
||||||
typescript: {
|
typescript: {
|
||||||
check: true, // type-check stories during Storybook build
|
check: true, // type-check stories during Storybook build
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
|
@ -144,7 +144,7 @@ That option would be interesting if you want to allow user to change their conse
|
|||||||
| hideOnAccept | boolean | true | If disabled the component will not hide it self after the accept button has been clicked. You will need to hide yourself (see onAccept) |
|
| hideOnAccept | boolean | true | If disabled the component will not hide it self after the accept button has been clicked. You will need to hide yourself (see onAccept) |
|
||||||
| buttonText | string or React component | "I understand" | Text to appear on the button |
|
| buttonText | string or React component | "I understand" | Text to appear on the button |
|
||||||
| declineButtonText | string or React component | "I decline" | Text to appear on the decline button |
|
| declineButtonText | string or React component | "I decline" | Text to appear on the decline button |
|
||||||
| cookieName | string | "CookieConsent" | Name of the cookie used to track whether the user has agreed. Note that you also have to pass this to the `getCookieConsentValue` and `resetCookieConsentValue` functions as they default to "CookieConsent" as well. |
|
| cookieName | string | "CookieConsent" | Name of the cookie used to track whether the user has agreed. |
|
||||||
| cookieValue | string or boolean or number | true | Value to be saved under the cookieName. |
|
| cookieValue | string or boolean or number | true | Value to be saved under the cookieName. |
|
||||||
| declineCookieValue | string or boolean or number | false | Value to be saved under the cookieName when declined. |
|
| declineCookieValue | string or boolean or number | false | Value to be saved under the cookieName when declined. |
|
||||||
| setDeclineCookie | boolean | true | Whether to set a cookie when the user clicks "decline" |
|
| setDeclineCookie | boolean | true | Whether to set a cookie when the user clicks "decline" |
|
||||||
@ -296,7 +296,7 @@ You can add more cookie options using the extraCookieOptions parameter like so:
|
|||||||
<CookieConsent extraCookieOptions={{ domain: "myexample.com" }}>cookie bar</CookieConsent>
|
<CookieConsent extraCookieOptions={{ domain: "myexample.com" }}>cookie bar</CookieConsent>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Rainbows
|
#### Rainbows!
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user