Components

Cookie banner

Allow users to accept or reject cookies which are not essential to making your service work.

Use this component if your service sets any cookies on a user’s device.

See GOV.UK cookie banner component guidance for:

  • when to use this component
  • when not to use it

How it works

See GOV.UK cookies banner component guidance for detail on how this component works.

When the user has accepted cookies

When the user has rejected cookies

Changes from the GOV.UK version

MOD.UK Design System components are closely based on GOV.UK Design System components.

For this component we’ve changed the font.

Have you tested this component?

Let us know how we could improve this component or share your user research findings.

Email the MOD.UK Design System team at design-system@digital.mod.uk

Need help?

Email the MOD.UK Design System team at design-system@digital.mod.uk if you have questions or feedback.