Skip to main content
75 · cookie-consentOverlays & Feedback5 Variations

Cookie Consent and Privacy

Five transparent, dark-pattern-free consent interfaces using in-memory React state (without setting production tracking cookies or injecting third-party trackers): banner, floating panel, dialog modal, preference center, and compact notice.

cookiesprivacygdprconsentpreferences
Bottom Cookie Banner
cookie-consent/bottom-cookie-banner
Loading variation cookie-consent/bottom-cookie-banner...

Component Information

Ethical bottom banner presenting Reject optional and Accept all with balanced hierarchy plus inline Customize switches.

Variation ID
cookie-consent/bottom-cookie-banner
Motion Engine
css
Source File
src/labs/components/components/cookie-consent/variations/bottom-cookie-banner.tsx
Reduced Motion & Accessibility

Immediate panel dismiss and reopen controls without entrance banners sliding over content.

  • Provides equal-prominence Reject optional and Accept all controls without deceptive UI nudges.
Dependencies
  • lucide-react^0.553.0Required

    Cookie and SlidersHorizontal icons

Usage Documentation

import { BottomCookieBanner } from '@/src/labs/components/components/cookie-consent';

export function ExampleCookieBanner() {
  return <BottomCookieBanner />;
}

Props API (1)

PropTypeDefaultDescription
onConsentSaved(prefs: ConsentPreferencesState) => void—Callback fired when user commits demo preferences.