svelte-tailwind-cookieconsent
v0.0.15
Published
Cookie consent made for Svelte and Tailwind projects
Downloads
5
Readme
Installation
npm install svelte-tailwind-cookieconsent
Usage
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