1.3.0 • Published 6 months ago
@c15t/nextjs v1.3.0
@c15t/nextjs
Next.js integration for C15T consent management. This package combines @c15t/node-sdk, @c15t/react, and @c15t/middleware into a single, easy-to-use package for Next.js applications.
Installation
npm install @c15t/nextjs
# or
yarn add @c15t/nextjs
# or
pnpm add @c15t/nextjsFeatures
- 🔄 Automatic middleware integration
- 🎯 Type-safe API client
- 🎨 Pre-built React components
- 🔒 Secure consent management
- 📱 Responsive design
- 🌐 Server-side rendering support
API Reference
Components
C15TNextProvider: Provider component for the consent management systemConsentBanner: Pre-built consent banner componentConsentManager: Component for managing consent preferencesConsentButton: Button component for triggering consent dialogs
Hooks
useConsent: Hook for accessing consent state and methodsuseConsentPreferences: Hook for managing consent preferencesuseConsentBanner: Hook for controlling the consent banner
Utilities
withC15T: Higher-order function for configuring Next.jscreateConsentClient: Function for creating a consent client instance
Support
License
GNU General Public License v3.0
1.3.0
6 months ago
1.2.2-canary-20250603153501
6 months ago
1.2.2-canary-20250602152741
7 months ago
1.2.2-canary-20250521150034
7 months ago
1.2.2-canary-20250521133509
7 months ago
1.2.2-canary-20250520100232
7 months ago
1.2.2-canary-20250514203718
7 months ago
1.2.2-canary-20250514183211
7 months ago