svelte-tailwind-cookieconsent

0.0.15 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i svelte-tailwind-cookieconsent

Weekly Downloads

1

Version

0.0.15

License

ISC

Unpacked Size

10.4 kB

Total Files

8

Last publish

Collaborators

  • firattemel