Skip to content

Cookie Notice

The CookieNotice component displays a banner or dialog to inform users about cookie usage and collect consent.
It helps your site comply with privacy regulations like GDPR and CCPA.

  • Banner or dialog: Can appear at the bottom, top, or as a modal.
  • Customizable actions: Accept or decline buttons.
  • Interactive: Open, close, or toggle programmatically.
  • Flexible content: Include text, links, or other interactive elements.
🍪 We use cookies

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.

Prop / SlotTypeDefaultDescription
isOpenbooleanfalseControls whether the notice is visible.
Drawer.HeadercomponentOptionalHeader content of the notice (e.g., title or emoji).
Drawer.ContentcomponentOptionalMain content of the notice (text, buttons, links).
ButtoncomponentOptionalAction buttons to accept or decline cookies.
  • Show the notice on initial page load to comply with regulations.
  • Provide clear accept and decline options for users.
  • Keep content concise and readable for better UX.
  • Use Drawer or banner positioning to avoid obstructing main content.
  • Combine with persistent state to remember user consent across sessions.