Overview
The Shadcn Cookie Consent is a repository that provides an implementation of a cookie consent banner using Shadcn UI and TailwindCSS. It offers a user-friendly way to comply with cookie consent regulations while ensuring a visually appealing design. The repository includes two variants for the cookie consent banner: Smallpreview and Defaultpreview.
Features
- Implementation of Cookie Consent Banner: Provides a solution for complying with cookie consent regulations.
- Use of Shadcn UI and TailwindCSS: Utilizes Shadcn UI components and TailwindCSS for design.
- Customization Options: Allows users to add their own CSS, TailwindCSS config, and Shadcn themes.
Installation
To install the Shadcn Cookie Consent theme, follow these steps:
- Create a component named
CookieConsent.jsx
. - Make it a client component.
- Import the necessary components from Shadcn, React, and React-icons.
- Add the code to the component to display the cookie consent banner.
- Customize the banner by adding your own CSS, TailwindCSS config, or Shadcn theme.
Summary
The Shadcn Cookie Consent repository offers a convenient way to implement a cookie consent banner on websites, ensuring compliance with regulations while maintaining an attractive design. Users can customize the banner according to their needs by adding their own styles and configurations. The repository also encourages contributions from the community through forking, adding new features, fixing issues, and creating pull requests.