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

Every state

  • Cookie preferences, default, light
    Cookie preferences, default, dark

    default

  • Cookie preferences, focus, light
    Cookie preferences, focus, dark

    focus

  • Cookie preferences, open, light
    Cookie preferences, open, dark

    open

  • Cookie preferences, focus-switch, light
    Cookie preferences, focus-switch, dark

    focus-switch

  • Cookie preferences, chosen, light
    Cookie preferences, chosen, dark

    chosen

  • Cookie preferences, details-open, light
    Cookie preferences, details-open, dark

    details-open

Props

PropTypeDefaultWhat it does
idstring"cookie-preferences"Dialog id; switch ids hang off it.
titlestring"Cookie settings"Dialog heading.
introstring–Line under the heading.
categories{ id: string; title: string; summary: string; details: string; lockedReason?: string; defaultChecked?: boolean }[]–The categories. One with lockedReason is always on and locked, with that reason.
openLabelstring"Cookie settings"Text of the button that opens the dialog.
saveLabelstring"Save choices"Save button text.
acceptLabelstring"Accept all"Accept all button text.
rejectLabelstring"Reject all"Reject all button text.
defaultOpenboolean–Opens the dialog on mount (first visits and previews).
onSave(choices: Record<string, boolean>, how: "save" | "accept-all" | "reject-all") => void–Called with every category's choice when the dialog closes with a choice. The dialog stores nothing.
classNamestring–Extra classes on the wrapper.

More consent

All 6
consent-03 is in UI ProGet UI Pro, €199

Preview

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

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