pattern-library checked
GOV.UK cookie banner component
Documents cookie banner use when a service sets cookies, accept and reject actions for non-essential cookies, saved preference confirmation, one-year preference storage, no non-essential cookies before consent, no sticky positioning, and cookies-page linkage.
Pattern Decisions This Source Supports
| Pattern | Supported decision | Required contract | Claim note |
|---|---|---|---|
| Cookie banner | Choose cookie banner when a user must be told about cookies or similar technologies and must be able to accept or reject non-essential storage before it is set. | The banner appears before non-essential storage is set and remains until the user accepts, rejects, or saves preferences. | GOV.UK documents cookie banner actions, confirmation behavior, preference persistence, no non-essential cookies before acceptance, cookies-page linkage, and non-sticky placement. |
| Cookie consent | Choose cookie consent when the decision controls cookies, pixels, local storage, tags, SDKs, or similar storage and access on the user's device. | Optional cookies, pixels, local storage, analytics tags, advertising tags, and similar technologies remain blocked until the matching purpose is accepted. | Supports the relationship between the cookie banner entry surface and the saved cookie preference. |
Evidence Role
This source is treated as pattern-library evidence. Use it to validate the decision rules above, not as a visual style reference.
Publisher: GOV.UK Design System. Last checked: .