Skip to content
Terms checkbox, light
Light
Terms checkbox, dark
Dark

Every state

  • Terms checkbox, default, light
    Terms checkbox, default, dark

    default

  • Terms checkbox, focus, light
    Terms checkbox, focus, dark

    focus

  • Terms checkbox, checked, light
    Terms checkbox, checked, dark

    checked

  • Terms checkbox, focus-link, light
    Terms checkbox, focus-link, dark

    focus-link

  • Terms checkbox, error, light
    Terms checkbox, error, dark

    error

  • Terms checkbox, error-focus, light
    Terms checkbox, error-focus, dark

    error-focus

  • Terms checkbox, disabled, light
    Terms checkbox, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"accept-terms"Checkbox id; the description and error hang off it.
namestring"acceptTerms"Form field name.
leadstring"I agree to the"Text before the terms link.
termsLabelstring"terms of use"Terms link text.
termsHrefstring"#terms"Terms link.
privacyLabelstring"privacy statement"Privacy link text.
privacyHrefstring"#privacy"Privacy link.
descriptionstring–A short line under the label.
errorMessagestring"Agree to the terms to continue"Shown when the form is sent without the box ticked.
invalidboolean–Shows the error from the start (previews, or after a server check).
defaultCheckedboolean–Starts ticked.
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-06 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