Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
firattemel committed May 4, 2021
2 parents 3d1ded6 + f3a0470 commit 6d64eeb
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
## Svelte Tailwind Cookieconsent
## Installation
`npm install svelte-tailwind-cookieconsent`

## Usage
```svelte
import CookieConsent from "svelte-tailwind-cookieconsent/src";
<CookieConsent
allowButtonText={"Allow"}
closeText={"Close"}
descriptionText={"We are using cookies to improve your experience "}
cookiePolicyText={"Learn More"}
cookiePolicyUrl={"https://www.example.com/"}
bgColor={"bg-gray-200"}
buttonTextColor={"text-white"}
closeTextColor={"text-green-500"}
buttonBgColor={"bg-green-500"}
descriptionTextColor={"text-gray-600"}
/>
```

## Notes
If you are purging unused tailwind classes, don't forget to exclude classes used in src/CookieConsent.svelte

0 comments on commit 6d64eeb

Please sign in to comment.