Skip to content
Age check, light
Light
Age check, dark
Dark

Every state

  • Age check, default, light
    Age check, default, dark

    default

  • Age check, focus, light
    Age check, focus, dark

    focus

  • Age check, filled, light
    Age check, filled, dark

    filled

  • Age check, error, light
    Age check, error, dark

    error

  • Age check, yes-no, light
    Age check, yes-no, dark

    yes-no

  • Age check, under-age, light
    Age check, under-age, dark

    under-age

  • Age check, passed, light
    Age check, passed, dark

    passed

Props

PropTypeDefaultWhat it does
idstring"age-check"Id; field ids hang off it.
mode"date" | "yes-no""date"Date of birth or one question. Same card, different content.
minAgenumber18Age needed to go in.
reasonstring–Why the site asks, in one sentence.
exitHrefstring"https://example.com"Where Leave this site goes.
exitLabelstring"Leave this site"Exit link text.
status"ask" | "passed" | "under-age""ask"Starting state (for previews).
defaultDaystring–Starting day.
defaultMonthstring–Starting month.
defaultYearstring–Starting year.
errorstring–An error to show from the start (previews).
todaystring–The day to count from, as YYYY-MM-DD. Defaults to today when the form is sent.
onPass() => void–Called when the person is old enough. Remember it yourself if you want to.
onFail() => void–Called when the person is under age.
classNamestring–Extra classes on the card.

More consent

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