mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-09-19 14:49:29 +02:00
Allow location none, to disable automatic location styling. Closes gi… (#17)
Fixes #16 Allows location property to receive string `none` which will disable automatic placement of the component.
This commit is contained in:
@@ -77,7 +77,7 @@ One of the props (onAccept) is a function, this function will be called after th
|
||||
## Props
|
||||
| Prop | Type | Default value | Description |
|
||||
|---------------|:--------------------------------:|---------------|-------------------------------------------------------------------------------------------------------|
|
||||
| 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, "top", "bottom" or "none"| "bottom" | Syntactic sugar to easily enable you to place the bar at the top or the bottom of the browser window. Use "none" to disable. |
|
||||
| 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) |
|
||||
| buttonText | string or React component | "I understand" | Text to appear on the button |
|
||||
|
Reference in New Issue
Block a user