mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-01-20 18:41:44 +01:00
apply documentation changes of #1
This commit is contained in:
parent
5093fd4339
commit
bd84510890
@ -68,7 +68,7 @@ On of the props (onAccept) is a function, this function will be called after the
|
|||||||
| location | String, either "top" or "bottom" | bottom | Syntactic sugar to easily enable you to place the bar at the top or the bottom of the browser window. |
|
| location | String, either "top" or "bottom" | bottom | Syntactic sugar to easily enable you to place the bar at the top or the bottom of the browser window. |
|
||||||
| children | String or React component | | Content to appear inside the bar |
|
| children | String or React component | | Content to appear inside the bar |
|
||||||
| disableStyles | boolean | false | If enabled the component will have no default style. (you can still supply style through props) |
|
| disableStyles | boolean | false | If enabled the component will have no default style. (you can still supply style through props) |
|
||||||
| buttonText | string | I understand | Text to appear on the button |
|
| buttonText | String or React component | 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 | ![barstyle](https://github.com/Mastermindzh/react-cookie-consent/blob/master/images/barStyle.png?raw=true) | React styling object for the bar. |
|
| style | Object | ![barstyle](https://github.com/Mastermindzh/react-cookie-consent/blob/master/images/barStyle.png?raw=true) | React styling object for the bar. |
|
||||||
|
Loading…
Reference in New Issue
Block a user