Cookies on [name of service]
We use some essential cookies to make this service work.
We’d also like to use analytics cookies so we can understand how you use the service and make improvements.
Experimental
This component is currently experimental because more research is needed to validate it.
Allow users to accept or reject cookies which are not essential to making your service work.
| Name | Type | Default | Description |
|---|---|---|---|
| id | string | - | 'id' attribute to place on the base HTML element |
| classBlock | string | - | Block name override in BEM style classes applied to all elements |
| classModifiers | Modifiers | - | BEM style modifiers to apply to the base HTML element |
| className | string | - | Extra classes to apply to the base HTML element |
| maxContentsWidth | number | - | Maximum width of the contents in px units (-1 for full width) |
| messages | Message[] | - | REQUIRED. List of messages to display |
After 25th June 2025, you should use the rebranded version of this component, by ensuring that a parent element, such as <html>, has the govuk-template--rebranded class.
Use this component if your service sets any cookies on a user’s device.
Remember, you must:
The term ‘non-essential cookies’ includes:
This cookie banner and the cookies page pattern are based on the approach to getting cookie consent used on the GOV.UK website.
This component page shows several options for using a cookie banner, based on the types of cookies you’re using in the service. We also tell you what to cover in your cookie banner, with some text examples.
Audit and categorise your cookies as shown in the cookies page pattern to help you choose the best option for your service.
You must not take the information on this page as legal advice. Your organisation is responsible and accountable for what they do to comply with data protection legislation, such as:
Check with your organisation’s privacy expert to see how data protection legislation affects your website and service.
Show the cookie banner every time the user accesses your service until they either:
Once the user has accepted or rejected cookies, the cookie banner should:
Make sure the cookie banner does not:
Position the cookie banner after the opening <body> tag and before the ’skip to main content‘ link.
You can choose not to have a cookie banner if the service only sets essential or ‘strictly necessary’ cookies, as these do not need user consent.
However, you must tell users that you set essential cookies. You can do this with a cookies page — link to this page in the footer.
You can choose this option if your service sets non-essential cookies on the server — your service may also set non-essential cookies on the client.
To get consent from the user, display the cookie banner inside a form that lets them submit their choice to accept or reject cookies.
All users will be able to see the banner as this approach does not rely on JavaScript.
Here’s an example of a cookie banner inside a form:
Once the user has accepted or rejected cookies and set their cookie preferences, reload the page to show a confirmation message.
Here’s an example of a confirmation message inside a form:
In the cookie banner, tell the user about all the cookies you’re using in the service — whether they’ve enabled JavaScript or not. This way, you will not need to ask the user to give their consent again on their next visit.
If the user is entering information into a form as part of the service, they might lose their place when they submit their choice to accept or reject cookies.
To help users running JavaScript on their device, you can write some JavaScript code to let them submit their choice and prevent the page from reloading.
Include all possible messages that the user could see in the cookie banner when the page loads. Hide these with the hidden HTML attribute where needed.
Here’s an example of a progressively enhanced cookie banner that includes all possible messages which are hidden using HTML — the cookie banner message is shown using JavaScript to remove the hidden attribute:
Here’s the same example of a progressively enhanced cookie banner, with the confirmation message shown instead:
You can choose to make your banner only work with JavaScript if your service only needs to set non-essential cookies on the client.
When the page loads, include all the cookie banner messages that the user might see, but hide these with the hidden HTML attribute.
Use JavaScript to show cookie banner messages to users that have not accepted or rejected cookies by removing the hidden attribute as needed.
Write your own JavaScript code so that when the user accepts or rejects cookies, the cookie banner will:
tabindex="-1" and role="alert" attributes — this will allow the element to be focused so assistive technology can read the messageHere’s an example:
Show a confirmation message confirming that the user has either accepted or rejected cookies by removing the hidden attribute.
Include the name of the service in the banner heading to help users understand that the cookies you’re talking about are different from the ones set by the main GOV.UK platform.
You’ll need to change the example cookie banner text if your service:
Keep the text as short as possible while making sure it’s an accurate description of how you use cookies. For example, if you use more than one ‘functional’ cookie and there’s not enough space to mention what each of them does, you could ask for permission to set cookies so ‘you can use as many of the service’s features as possible’.
See the cookies page for more advice on writing about cookies.
You can use this example text for a service which sets essential and analytics cookies. Analytics cookies are those set by your organisation to collect information about how people are using your digital service.
You can use this example text for a service that set:
You’ll need a cookies page as well as a cookie banner.
When the user accepts or rejects cookies, a confirmation message will display. For example, “Your cookie preferences have been saved.” The focus also shifts to this new message.
However, a visible focus indicator does not display around the confirmation message. This is different from the notification banner, which does display a visible focus indicator.
We decided to remove the visible focus indicator from the confirmation message for a few reasons, as:
In this scenario, we assume that a visible focus indicator would be more likely to confuse users than to help them. However, we need more research to prove this.
<div
class="govuk-cookie-banner"
data-nosnippet="true"
role="region"
aria-label="Cookies on [name of service]"
>
<div
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h2
class="govuk-cookie-banner__heading govuk-heading-m"
>
Cookies on [name of service]
</h2>
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
We use some essential cookies to make this
service work.
</p>
<p class="govuk-body">
We’d also like to use analytics cookies so
we can understand how you use the service
and make improvements.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<button
data-module="govuk-button"
value="accept"
class="govuk-button"
name="cookies"
>
Accept analytics cookies
</button>
<button
data-module="govuk-button"
value="reject"
class="govuk-button"
name="cookies"
>
Reject analytics cookies
</button>
<a
class="govuk-link govuk-link--active"
href="#"
>
View cookies
</a>
</div>
</div>
</div>
<CookieBanner
aria-label="Cookies on [name of service]"
messages={[
{
actions: (
<>
<Button name="cookies" value="accept">
Accept analytics cookies
</Button>
<Button name="cookies" value="reject">
Reject analytics cookies
</Button>
<Link href="#">View cookies</Link>
</>
),
content: (
<>
<p className="govuk-body">
We use some essential cookies to make this
service work.
</p>
<p className="govuk-body">
We’d also like to use analytics cookies so
we can understand how you use the service
and make improvements.
</p>
</>
),
heading: "Cookies on [name of service]",
},
]}
/>
<div class="govuk-template--rebranded">
<div
class="govuk-cookie-banner"
data-nosnippet="true"
role="region"
aria-label="Cookies on [name of service]"
>
<div
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h2
class="govuk-cookie-banner__heading govuk-heading-m"
>
Cookies on [name of service]
</h2>
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
We use some essential cookies to make
this service work.
</p>
<p class="govuk-body">
We’d also like to use analytics cookies
so we can understand how you use the
service and make improvements.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<button
data-module="govuk-button"
value="accept"
class="govuk-button"
name="cookies"
>
Accept analytics cookies
</button>
<button
data-module="govuk-button"
value="reject"
class="govuk-button"
name="cookies"
>
Reject analytics cookies
</button>
<a
class="govuk-link govuk-link--active"
href="#"
>
View cookies
</a>
</div>
</div>
</div>
</div>
<div className="govuk-template--rebranded">
<CookieBanner
aria-label="Cookies on [name of service]"
messages={[
{
actions: (
<>
<Button name="cookies" value="accept">
Accept analytics cookies
</Button>
<Button name="cookies" value="reject">
Reject analytics cookies
</Button>
<Link href="#">View cookies</Link>
</>
),
content: (
<>
<p className="govuk-body">
We use some essential cookies to make
this service work.
</p>
<p className="govuk-body">
We’d also like to use analytics cookies
so we can understand how you use the
service and make improvements.
</p>
</>
),
heading: "Cookies on [name of service]",
},
]}
/>
</div>
<form method="POST">
<div
class="govuk-cookie-banner"
data-nosnippet="true"
role="region"
aria-label="Cookies on [name of service]"
>
<div
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h2
class="govuk-cookie-banner__heading govuk-heading-m"
>
Cookies on [name of service]
</h2>
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
We use some essential cookies to make
this service work.
</p>
<p class="govuk-body">
We’d also like to use analytics cookies
so we can understand how you use the
service and make improvements.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<button
data-module="govuk-button"
value="accept"
type="submit"
class="govuk-button"
name="cookies"
>
Accept analytics cookies
</button>
<button
data-module="govuk-button"
value="reject"
type="submit"
class="govuk-button"
name="cookies"
>
Reject analytics cookies
</button>
<a
class="govuk-link govuk-link--active"
href="#"
>
View cookies
</a>
</div>
</div>
</div>
</form>
<form method="POST">
<CookieBanner
aria-label="Cookies on [name of service]"
messages={[
{
actions: (
<>
<Button
name="cookies"
type="submit"
value="accept"
>
Accept analytics cookies
</Button>
<Button
name="cookies"
type="submit"
value="reject"
>
Reject analytics cookies
</Button>
<Link href="#">View cookies</Link>
</>
),
content: (
<>
<p className="govuk-body">
We use some essential cookies to make
this service work.
</p>
<p className="govuk-body">
We’d also like to use analytics cookies
so we can understand how you use the
service and make improvements.
</p>
</>
),
heading: "Cookies on [name of service]",
},
]}
/>
</form>
<form method="POST">
<div
class="govuk-cookie-banner"
data-nosnippet="true"
role="region"
aria-label="Cookies on [name of service]"
>
<div
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h2
class="govuk-cookie-banner__heading govuk-heading-m"
>
Cookies on [name of service]
</h2>
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
You’ve accepted additional cookies. You
can
<a class="govuk-link" href="#">
change your cookie settings
</a>
at any time.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<a
data-module="govuk-button"
draggable="false"
role="button"
class="govuk-button govuk-button--active"
href="#"
>
Hide this message
</a>
</div>
</div>
</div>
</form>
<form method="POST">
<CookieBanner
aria-label="Cookies on [name of service]"
messages={[
{
actions: (
<Button href="#">Hide this message</Button>
),
content: (
<p className="govuk-body">
You’ve accepted additional cookies. You
can{" "}
<a className="govuk-link" href="#">
change your cookie settings
</a>{" "}
at any time.
</p>
),
heading: "Cookies on [name of service]",
},
]}
/>
</form>
<form method="POST">
<div
class="govuk-cookie-banner"
data-nosnippet="true"
role="region"
aria-label="Cookies on [name of service]"
>
<div
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h2
class="govuk-cookie-banner__heading govuk-heading-m"
>
Cookies on [name of service]
</h2>
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
We use some essential cookies to make
this service work.
</p>
<p class="govuk-body">
We’d also like to use analytics cookies
so we can understand how you use the
service and make improvements.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<button
data-module="govuk-button"
value="accept"
type="submit"
class="govuk-button"
name="cookies"
>
Accept analytics cookies
</button>
<button
data-module="govuk-button"
value="reject"
type="submit"
class="govuk-button"
name="cookies"
>
Reject analytics cookies
</button>
<a
class="govuk-link govuk-link--active"
href="#"
>
View cookies
</a>
</div>
</div>
<div
hidden=""
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
You’ve accepted additional cookies. You
can
<a class="govuk-link" href="#">
change your cookie settings
</a>
at any time.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<a
data-module="govuk-button"
draggable="false"
role="button"
class="govuk-button govuk-button--active"
href="#"
>
Hide this message
</a>
</div>
</div>
<div
hidden=""
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
You’ve rejected additional cookies. You
can
<a class="govuk-link" href="#">
change your cookie settings
</a>
at any time.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<a
data-module="govuk-button"
draggable="false"
role="button"
class="govuk-button govuk-button--active"
href="#"
>
Hide this message
</a>
</div>
</div>
</div>
</form>
<form method="POST">
<CookieBanner
aria-label="Cookies on [name of service]"
messages={[
{
actions: (
<>
<Button
name="cookies"
type="submit"
value="accept"
>
Accept analytics cookies
</Button>
<Button
name="cookies"
type="submit"
value="reject"
>
Reject analytics cookies
</Button>
<Link href="#">View cookies</Link>
</>
),
content: (
<>
<p className="govuk-body">
We use some essential cookies to make
this service work.
</p>
<p className="govuk-body">
We’d also like to use analytics cookies
so we can understand how you use the
service and make improvements.
</p>
</>
),
heading: "Cookies on [name of service]",
},
{
actions: (
<Button href="#">Hide this message</Button>
),
content: (
<p className="govuk-body">
You’ve accepted additional cookies. You
can{" "}
<a className="govuk-link" href="#">
change your cookie settings
</a>{" "}
at any time.
</p>
),
hidden: true,
},
{
actions: (
<Button href="#">Hide this message</Button>
),
content: (
<p className="govuk-body">
You’ve rejected additional cookies. You
can{" "}
<a className="govuk-link" href="#">
change your cookie settings
</a>{" "}
at any time.
</p>
),
hidden: true,
},
]}
/>
</form>
<form method="POST">
<div
class="govuk-cookie-banner"
data-nosnippet="true"
role="region"
aria-label="Cookies on [name of service]"
>
<div
hidden=""
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h2
class="govuk-cookie-banner__heading govuk-heading-m"
>
Cookies on [name of service]
</h2>
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
We use some essential cookies to make
this service work.
</p>
<p class="govuk-body">
We’d also like to use analytics cookies
so we can understand how you use the
service and make improvements.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<button
data-module="govuk-button"
value="accept"
type="submit"
class="govuk-button"
name="cookies"
>
Accept analytics cookies
</button>
<button
data-module="govuk-button"
value="reject"
type="submit"
class="govuk-button"
name="cookies"
>
Reject analytics cookies
</button>
<a
class="govuk-link govuk-link--active"
href="#"
>
View cookies
</a>
</div>
</div>
<div
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
You’ve accepted additional cookies. You
can
<a class="govuk-link" href="#">
change your cookie settings
</a>
at any time.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<a
data-module="govuk-button"
draggable="false"
role="button"
class="govuk-button govuk-button--active"
href="#"
>
Hide this message
</a>
</div>
</div>
<div
hidden=""
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
You’ve rejected additional cookies. You
can
<a class="govuk-link" href="#">
change your cookie settings
</a>
at any time.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<a
data-module="govuk-button"
draggable="false"
role="button"
class="govuk-button govuk-button--active"
href="#"
>
Hide this message
</a>
</div>
</div>
</div>
</form>
<form method="POST">
<CookieBanner
aria-label="Cookies on [name of service]"
messages={[
{
actions: (
<>
<Button
name="cookies"
type="submit"
value="accept"
>
Accept analytics cookies
</Button>
<Button
name="cookies"
type="submit"
value="reject"
>
Reject analytics cookies
</Button>
<Link href="#">View cookies</Link>
</>
),
content: (
<>
<p className="govuk-body">
We use some essential cookies to make
this service work.
</p>
<p className="govuk-body">
We’d also like to use analytics cookies
so we can understand how you use the
service and make improvements.
</p>
</>
),
heading: "Cookies on [name of service]",
hidden: true,
},
{
actions: (
<Button href="#">Hide this message</Button>
),
content: (
<p className="govuk-body">
You’ve accepted additional cookies. You
can{" "}
<a className="govuk-link" href="#">
change your cookie settings
</a>{" "}
at any time.
</p>
),
},
{
actions: (
<Button href="#">Hide this message</Button>
),
content: (
<p className="govuk-body">
You’ve rejected additional cookies. You
can{" "}
<a className="govuk-link" href="#">
change your cookie settings
</a>{" "}
at any time.
</p>
),
hidden: true,
},
]}
/>
</form>
<div
class="govuk-cookie-banner"
data-nosnippet="true"
role="region"
aria-label="Cookies on [name of service]"
>
<div
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h2
class="govuk-cookie-banner__heading govuk-heading-m"
>
Cookies on [name of service]
</h2>
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
We use some essential cookies to make this
service work.
</p>
<p class="govuk-body">
We’d also like to use analytics cookies so
we can understand how you use the service
and make improvements.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<button
data-module="govuk-button"
class="govuk-button"
name="cookies"
>
Accept analytics cookies
</button>
<button
data-module="govuk-button"
class="govuk-button"
name="cookies"
>
Reject analytics cookies
</button>
<a
class="govuk-link govuk-link--active"
href="#"
>
View cookies
</a>
</div>
</div>
<div
hidden=""
role="alert"
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
You’ve accepted additional cookies. You
can
<a class="govuk-link" href="#">
change your cookie settings
</a>
at any time.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<a
data-module="govuk-button"
draggable="false"
role="button"
class="govuk-button govuk-button--active"
href="#"
>
Hide this message
</a>
</div>
</div>
<div
hidden=""
role="alert"
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
You’ve rejected additional cookies. You
can
<a class="govuk-link" href="#">
change your cookie settings
</a>
at any time.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<a
data-module="govuk-button"
draggable="false"
role="button"
class="govuk-button govuk-button--active"
href="#"
>
Hide this message
</a>
</div>
</div>
</div>
<CookieBanner
aria-label="Cookies on [name of service]"
messages={[
{
actions: (
<>
<Button name="cookies">
Accept analytics cookies
</Button>
<Button name="cookies">
Reject analytics cookies
</Button>
<Link href="#">View cookies</Link>
</>
),
content: (
<>
<p className="govuk-body">
We use some essential cookies to make this
service work.
</p>
<p className="govuk-body">
We’d also like to use analytics cookies so
we can understand how you use the service
and make improvements.
</p>
</>
),
heading: "Cookies on [name of service]",
},
{
actions: (
<Button href="#">Hide this message</Button>
),
content: (
<p className="govuk-body">
You’ve accepted additional cookies. You can{" "}
<a className="govuk-link" href="#">
change your cookie settings
</a>{" "}
at any time.
</p>
),
hidden: true,
role: "alert",
},
{
actions: (
<Button href="#">Hide this message</Button>
),
content: (
<p className="govuk-body">
You’ve rejected additional cookies. You can{" "}
<a className="govuk-link" href="#">
change your cookie settings
</a>{" "}
at any time.
</p>
),
hidden: true,
role: "alert",
},
]}
/>
<div
class="govuk-cookie-banner"
data-nosnippet="true"
role="region"
aria-label="Cookies on [name of service]"
>
<div
hidden=""
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h2
class="govuk-cookie-banner__heading govuk-heading-m"
>
Cookies on [name of service]
</h2>
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
We use some essential cookies to make this
service work.
</p>
<p class="govuk-body">
We’d also like to use analytics cookies so
we can understand how you use the service
and make improvements.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<button
data-module="govuk-button"
class="govuk-button"
name="cookies"
>
Accept analytics cookies
</button>
<button
data-module="govuk-button"
class="govuk-button"
name="cookies"
>
Reject analytics cookies
</button>
<a
class="govuk-link govuk-link--active"
href="#"
>
View cookies
</a>
</div>
</div>
<div
role="alert"
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
You’ve accepted additional cookies. You
can
<a class="govuk-link" href="#">
change your cookie settings
</a>
at any time.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<a
data-module="govuk-button"
draggable="false"
role="button"
class="govuk-button govuk-button--active"
href="#"
>
Hide this message
</a>
</div>
</div>
<div
hidden=""
role="alert"
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
You’ve rejected additional cookies. You
can
<a class="govuk-link" href="#">
change your cookie settings
</a>
at any time.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<a
data-module="govuk-button"
draggable="false"
role="button"
class="govuk-button govuk-button--active"
href="#"
>
Hide this message
</a>
</div>
</div>
</div>
<CookieBanner
aria-label="Cookies on [name of service]"
messages={[
{
actions: (
<>
<Button name="cookies">
Accept analytics cookies
</Button>
<Button name="cookies">
Reject analytics cookies
</Button>
<Link href="#">View cookies</Link>
</>
),
content: (
<>
<p className="govuk-body">
We use some essential cookies to make this
service work.
</p>
<p className="govuk-body">
We’d also like to use analytics cookies so
we can understand how you use the service
and make improvements.
</p>
</>
),
heading: "Cookies on [name of service]",
hidden: true,
},
{
actions: (
<Button href="#">Hide this message</Button>
),
content: (
<p className="govuk-body">
You’ve accepted additional cookies. You can{" "}
<a className="govuk-link" href="#">
change your cookie settings
</a>{" "}
at any time.
</p>
),
role: "alert",
},
{
actions: (
<Button href="#">Hide this message</Button>
),
content: (
<p className="govuk-body">
You’ve rejected additional cookies. You can{" "}
<a className="govuk-link" href="#">
change your cookie settings
</a>{" "}
at any time.
</p>
),
hidden: true,
role: "alert",
},
]}
/>
<div
class="govuk-cookie-banner"
data-nosnippet="true"
role="region"
aria-label="Cookies on [name of service]"
>
<div
hidden=""
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h2
class="govuk-cookie-banner__heading govuk-heading-m"
>
Cookies on [name of service]
</h2>
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
We use some essential cookies to make this
service work.
</p>
<p class="govuk-body">
We’d also like to use analytics cookies so
we can understand how you use the service
and make improvements.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<button
data-module="govuk-button"
class="govuk-button"
name="cookies"
>
Accept analytics cookies
</button>
<button
data-module="govuk-button"
class="govuk-button"
name="cookies"
>
Reject analytics cookies
</button>
<a
class="govuk-link govuk-link--active"
href="#"
>
View cookies
</a>
</div>
</div>
<div
hidden=""
role="alert"
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
You’ve accepted additional cookies. You
can
<a class="govuk-link" href="#">
change your cookie settings
</a>
at any time.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<a
data-module="govuk-button"
draggable="false"
role="button"
class="govuk-button govuk-button--active"
href="#"
>
Hide this message
</a>
</div>
</div>
<div
role="alert"
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
You’ve rejected additional cookies. You
can
<a class="govuk-link" href="#">
change your cookie settings
</a>
at any time.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<a
data-module="govuk-button"
draggable="false"
role="button"
class="govuk-button govuk-button--active"
href="#"
>
Hide this message
</a>
</div>
</div>
</div>
<CookieBanner
aria-label="Cookies on [name of service]"
messages={[
{
actions: (
<>
<Button name="cookies">
Accept analytics cookies
</Button>
<Button name="cookies">
Reject analytics cookies
</Button>
<Link href="#">View cookies</Link>
</>
),
content: (
<>
<p className="govuk-body">
We use some essential cookies to make this
service work.
</p>
<p className="govuk-body">
We’d also like to use analytics cookies so
we can understand how you use the service
and make improvements.
</p>
</>
),
heading: "Cookies on [name of service]",
hidden: true,
},
{
actions: (
<Button href="#">Hide this message</Button>
),
content: (
<p className="govuk-body">
You’ve accepted additional cookies. You can{" "}
<a className="govuk-link" href="#">
change your cookie settings
</a>{" "}
at any time.
</p>
),
hidden: true,
role: "alert",
},
{
actions: (
<Button href="#">Hide this message</Button>
),
content: (
<p className="govuk-body">
You’ve rejected additional cookies. You can{" "}
<a className="govuk-link" href="#">
change your cookie settings
</a>{" "}
at any time.
</p>
),
role: "alert",
},
]}
/>
<div
class="govuk-cookie-banner"
data-nosnippet="true"
role="region"
aria-label="Cookies on [name of service]"
>
<div
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h2
class="govuk-cookie-banner__heading govuk-heading-m"
>
Cookies on [name of service]
</h2>
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
We use some essential cookies to make this
service work.
</p>
<p class="govuk-body">
We’d also like to use analytics cookies so
we can understand how you use the service
and make improvements.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<button
data-module="govuk-button"
value="accept"
class="govuk-button"
name="cookies"
>
Accept analytics cookies
</button>
<button
data-module="govuk-button"
value="reject"
class="govuk-button"
name="cookies"
>
Reject analytics cookies
</button>
<a
class="govuk-link govuk-link--active"
href="#"
>
View cookies
</a>
</div>
</div>
</div>
<CookieBanner
aria-label="Cookies on [name of service]"
messages={[
{
actions: (
<>
<Button name="cookies" value="accept">
Accept analytics cookies
</Button>
<Button name="cookies" value="reject">
Reject analytics cookies
</Button>
<Link href="#">View cookies</Link>
</>
),
content: (
<>
<p className="govuk-body">
We use some essential cookies to make this
service work.
</p>
<p className="govuk-body">
We’d also like to use analytics cookies so
we can understand how you use the service
and make improvements.
</p>
</>
),
heading: "Cookies on [name of service]",
},
]}
/>
<div
class="govuk-cookie-banner"
data-nosnippet="true"
role="region"
aria-label="Cookies on [name of service]"
>
<div
class="govuk-width-container govuk-cookie-banner__message"
>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h2
class="govuk-cookie-banner__heading govuk-heading-m"
>
Cookies on [name of service]
</h2>
<div class="govuk-cookie-banner__content">
<p class="govuk-body">
We use some essential cookies to make this
service work.
</p>
<p class="govuk-body">
We’d like to set additional cookies so we
can remember your settings, understand how
people use the service and make
improvements.
</p>
</div>
</div>
</div>
<div class="govuk-button-group">
<button
data-module="govuk-button"
value="accept"
class="govuk-button"
name="cookies"
>
Accept additional cookies
</button>
<button
data-module="govuk-button"
value="reject"
class="govuk-button"
name="cookies"
>
Reject additional cookies
</button>
<a
class="govuk-link govuk-link--active"
href="#"
>
View cookies
</a>
</div>
</div>
</div>
<CookieBanner
aria-label="Cookies on [name of service]"
messages={[
{
actions: (
<>
<Button name="cookies" value="accept">
Accept additional cookies
</Button>
<Button name="cookies" value="reject">
Reject additional cookies
</Button>
<Link href="#">View cookies</Link>
</>
),
content: (
<>
<p className="govuk-body">
We use some essential cookies to make this
service work.
</p>
<p className="govuk-body">
We’d like to set additional cookies so we
can remember your settings, understand how
people use the service and make
improvements.
</p>
</>
),
heading: "Cookies on [name of service]",
},
]}
/>