@eisberg-labs/mui-next-cookie-consent
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "@eisberg-labs/mui-next-cookie-consent", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "React Material Ui cookie consent dialog, compatible with nextjs cookies.", | ||
@@ -12,3 +12,3 @@ "keywords": [ | ||
], | ||
"homepage": "https://github.com/eisberg-labs/react-components", | ||
"homepage": "https://github.com/eisberg-labs/react-components/tree/main/packages/mui-next-cookie-consent#readme", | ||
"bugs": { | ||
@@ -58,3 +58,3 @@ "url": "https://github.com/eisberg-labs/react-components/issues" | ||
}, | ||
"gitHead": "1ba37d085031a3cafd6e3629c7114d9ddd73c64b", | ||
"gitHead": "440fb19e496c0413ada80715b6ad97de4b233b08", | ||
"publishConfig": { | ||
@@ -61,0 +61,0 @@ "access": "public" |
@@ -5,7 +5,7 @@ # Mui Next Cookie Consent | ||
# Installation | ||
## Installation | ||
Since this is an extension of mui components, prerequisite is to have material library already installed. | ||
```sh | ||
```bash | ||
npm i --save @mui/material | ||
@@ -18,8 +18,11 @@ ``` | ||
# Usage | ||
Just import the template with defaults: | ||
## Usage | ||
Just import the template with defaults: | ||
```jsx | ||
<CookieConsent>This website uses cookies to enhance the user experience.</CookieConsent> | ||
``` | ||
I use it in a nextjs app like this: | ||
```jsx | ||
@@ -48,3 +51,3 @@ | ||
# Api | ||
## Api | ||
@@ -61,8 +64,5 @@ | Name | Type | Default | Description | | ||
# Demo | ||
[Try the Demo](https://www.amarjanica.com/projects/react-components) | ||
## License | ||
# License | ||
MIT © [Eisberg Labs](http://www.eisberg-labs.com) |
18832