Skip to content

Commit

Permalink
add doc for tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Sep 24, 2024
1 parent 6735120 commit 790ecdf
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ CookiesConsent::register(new CookieGroupDefinition(

#### Using the Default Cookie Banner

You can use the default cookie banner included with this package.
You can use the default cookie banner included with this package. It requires js-cookie, Alpine and tailwindcss.

##### js-cookie Requirement

Expand All @@ -247,6 +247,20 @@ Simply put the banner component `<x-cookies-consent::banner />` at the end of yo
</body>
```

##### tailwindcss Requirement

The default banner is styled with tailwindcss. You should add the following paths to your tailwind config file:

```js
export default {
content: [
// ...
"./vendor/elegantly/laravel-cookies-consent/resources/views/*.blade.php",
],
// ...
};
```

#### Customizing the Default Component

You can customize the default component by publishing the views:
Expand Down

0 comments on commit 790ecdf

Please sign in to comment.