Skip to content

Cookie banners components in HTML and CSS

Cookie consent banners where refusing is as easy as accepting, as European regulators expect.5 free components to copy in HTML and CSS, accessible and responsive, with a live preview.

The 5 components

  • A rounded dark bar floating at the bottom of the screen, text on the left and buttons on the right on large screens.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • An understated banner with square corners and a thick rule, suited to local authorities, firms and public institutions.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A floating card in the bottom-left corner, discreet yet always visible.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A banner at the top of the page, in the document flow, that never hides content.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A full-width banner pinned to the bottom of the screen, with refuse, customize and accept on the same level.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component