Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@mihilista/cookie-consent
Advanced tools
A reusable cookie consent manager designed specifically for Next.js projects. This package provides a flexible, developer-friendly solution for managing cookie consent, with pre-defined categories and the ability to extend it with custom categories and th
A reusable cookie consent manager designed specifically for Next.js projects. This package provides a flexible, developer-friendly solution for managing cookie consent, with pre-defined categories and the ability to extend it with custom categories and themes in the future. 🚀
analytics
, marketing
, and functional
cookies.Install the package using npm:
npm install @mihilista/cookie-consent
or with Yarn:
yarn add @mihilista/cookie-consent
CookieConsentProvider
In your Next.js layout.tsx
file:
import { CookieConsentProvider } from "@mihilista/cookie-consent";
export default function RootLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {
return <CookieConsentProvider>{children}</CookieConsentProvider>;
}
CookieBanner
, CookiePreferencesModal
, and CookiePreferencesLink
In a shared component or directly in your pages (or layout):
import { CookieBanner, CookiePreferencesModal, CookiePreferencesLink } from "@mihilista/cookie-consent";
export default function CookieConsent() {
return (
<>
<CookieBanner />
<CookiePreferencesModal />
<CookiePreferencesLink/>
</>
);
}
The package comes with three default categories (functional
, analytics
, and marketing
), but you can customize them in future updates.
Here’s how it looks out of the box:
This package includes features like:
Make sure to consult a legal expert to ensure full compliance with local regulations.
This package was crafted with care, a touch of passion, and a sprinkle of AI magic. It’s the result of a collaborative effort between Mihi and Astra, an AI assistant who’s always ready to lend a helping hand. ❤️
If you find this package helpful, I’d love to hear about it! Share your feedback, feature requests, or even your project milestones with me. And hey, if you feel like dropping a ⭐ on GitHub, I won’t complain! 😉
FAQs
A reusable cookie consent manager designed specifically for Next.js projects. This package provides a flexible, developer-friendly solution for managing cookie consent, with pre-defined categories and the ability to extend it with custom categories and th
The npm package @mihilista/cookie-consent receives a total of 19 weekly downloads. As such, @mihilista/cookie-consent popularity was classified as not popular.
We found that @mihilista/cookie-consent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.