Agentic Design System
v3.5.0

Components · Feedback · Cookie Consent

Back to Cookie Consent

Cookie ConsentNew

Owner: Design System Team · Version: v3.5.0

Use for cookie or tracking consent with per-category choices and a way to reopen them later.

Properties

Size, corner radius and the content options below are properties of the same component, not separate elements - change them to check this component's appearances and states in the Live Preview.

Live Preview

Every appearance side by side, each in every state. One full matrix is rendered per selected Size and Corner radius combination.

When to use

Marketing sites or apps that need per-category choices.

Consent bar Preferences Reopen Per-category

Component Guide

Overview

Cookie Consent is a consent bar that morphs into a per-category preferences panel and then folds into a small reopen button.

When to Use

  • Marketing sites or apps that need per-category choices.
  • A way for visitors to reopen their choice later.

When Not to Use

  • A site-wide notice that needs no choice - use Announcement Bar.
  • A one-off message that dismisses itself - use Toast.
  • When the page must block until the visitor decides - use Modal.

Best Practices

  • Give Reject all the same weight as Accept all.
  • Bump the version whenever categories or the policy change.
  • Gate optional scripts on the change handler.

Accessibility

  • The bar and panel are non-modal dialogs.
  • Opening the panel focuses its heading; saving focuses the reopen button.
  • Each switch is labelled by its category and described by its hint.

Related Components

Announcement Bar, Toast, Modal, Switch.