Skip to content
Cookie bar, light
Light
Cookie bar, dark
Dark

Every state

  • Cookie bar, default, light
    Cookie bar, default, dark

    default

  • Cookie bar, focus, light
    Cookie bar, focus, dark

    focus

  • Cookie bar, focus-link, light
    Cookie bar, focus-link, dark

    focus-link

  • Cookie bar, saved, light
    Cookie bar, saved, dark

    saved

Props

PropTypeDefaultWhat it does
idstring"cookie-bar"Id; the heading id hangs off it.
titlestring"Cookies on this site"Heading that names the region.
messagestring–The short explanation.
policyLabelstring"Read our cookie policy"Policy link text.
policyHrefstring"#cookie-policy"Policy link.
acceptLabelstring"Accept all"Accept button text.
rejectLabelstring"Reject all"Reject button text.
settingsLabelstring"Settings"Settings button text.
savedMessagestring–Shown in place of the buttons once a choice is made.
status"ask" | "saved""ask"Starting state (for previews).
onChoice(choice: "accept-all" | "reject-all") => void–Called with the choice. The bar sets no cookies and stores nothing.
onSettings() => void–Opens your cookie settings, for example the cookie preferences dialog.
classNamestring–Extra classes on the bar.

More consent

All 6

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans