1.10.1 • Published 11 months ago

cookie-banner-prodesign v1.10.1

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Certainly! Here's an updated version of the README that includes the customization properties:

# Cookie Banner ProDesign

This is a simple, customizable cookie banner built with React and Next.js.

## Installation

You can install this package using npm:

```bash
npm install cookie-banner-prodesign

Usage

First, import the CookieBanner component:

import CookieBanner from 'cookie-banner-prodesign';

Then, you can use it in your React/Next.js component:

export default function MyApp() {
  return (
    <div>
      <CookieBanner
        style={{ backgroundColor: 'blue', color: 'white' }}
        acceptButtonStyle={{ backgroundColor: 'green', color: 'white' }}
        acceptEssentialButtonStyle={{ backgroundColor: 'yellow', color: 'black' }}
        url={"url"}
        token={'token'}
      />
      {/* the rest of your app */}
    </div>
  );
}

By default, the banner will be displayed at the bottom of the page. The user can choose to accept all cookies or only essential cookies.

Customization

You can customize the appearance of the banner using the following properties:

  • style: CSSProperties for styling the banner container.
  • acceptButtonStyle: CSSProperties for styling the "Accept All" button.
  • acceptEssentialButtonStyle: CSSProperties for styling the "Accept Essential Cookies" button.

For example, you can set the background color, text color, font size, and other styles using these properties.

Issues and Contributing

Please open an issue on GitHub if you find a bug or have suggestions for improvements or features.

This is a basic README that should cover most of the necessary information for someone wanting to use your package. As you continue to develop the package, you may want to add additional sections to the README, such as:

  • API Documentation: Detailed information about the props and methods in your package.
  • Examples: More complex usage examples or example projects.
  • Development Guide: Instructions for other developers who want to contribute to your package. This can include information about your development setup, testing procedures, and contribution guidelines.
Feel free to adjust the CSS properties in the example code to match your desired styles.
1.0.19

11 months ago

1.0.18

11 months ago

1.0.17

11 months ago

1.0.16

11 months ago

1.8.1

11 months ago

1.6.1

11 months ago

1.4.1

11 months ago

1.2.1

11 months ago

1.0.22

11 months ago

1.0.21

11 months ago

1.0.20

11 months ago

1.0.26

11 months ago

1.0.25

11 months ago

1.0.24

11 months ago

1.0.23

11 months ago

1.0.29

11 months ago

1.0.28

11 months ago

1.0.27

11 months ago

1.0.33

11 months ago

1.0.32

11 months ago

1.0.31

11 months ago

1.0.30

11 months ago

1.0.37

11 months ago

1.0.36

11 months ago

1.0.35

11 months ago

1.0.34

11 months ago

1.1.1

11 months ago

1.0.39

11 months ago

1.0.38

11 months ago

1.9.1

11 months ago

1.7.1

11 months ago

1.5.1

11 months ago

1.3.1

11 months ago

1.10.1

11 months ago

1.0.15

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago