Skip to content
Marketing opt-in, light
Light
Marketing opt-in, dark
Dark

Every state

  • Marketing opt-in, default, light
    Marketing opt-in, default, dark

    default

  • Marketing opt-in, focus, light
    Marketing opt-in, focus, dark

    focus

  • Marketing opt-in, checked, light
    Marketing opt-in, checked, dark

    checked

  • Marketing opt-in, disabled, light
    Marketing opt-in, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"newsletter-opt-in"Checkbox id; the description hangs off it.
namestring"newsletter"Form field name (value "yes").
labelstring"Send me the newsletter"Checkbox label.
benefitsstring[]–What is in it, a few short lines.
frequencystring"About twice a month."How often it comes.
unsubscribestring–How to stop it.
privacyLabelstring"How we use your email"Privacy link text.
privacyHrefstring"#privacy"Privacy link.
defaultCheckedbooleanfalseStarts ticked. Leave it off: an opt-in starts unticked.
disabledboolean–Disables the box.
onChange(checked: boolean) => void–Called when the box changes. The component stores nothing.
classNamestring–Extra classes on the outer Field.

More consent

All 6
consent-05 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