

Every state


default


focus


checked


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "newsletter-opt-in" | Checkbox id; the description hangs off it. |
| name | string | "newsletter" | Form field name (value "yes"). |
| label | string | "Send me the newsletter" | Checkbox label. |
| benefits | string[] | – | What is in it, a few short lines. |
| frequency | string | "About twice a month." | How often it comes. |
| unsubscribe | string | – | How to stop it. |
| privacyLabel | string | "How we use your email" | Privacy link text. |
| privacyHref | string | "#privacy" | Privacy link. |
| defaultChecked | boolean | false | Starts ticked. Leave it off: an opt-in starts unticked. |
| disabled | boolean | – | Disables the box. |
| onChange | (checked: boolean) => void | – | Called when the box changes. The component stores nothing. |
| className | string | – | Extra classes on the outer Field. |
More consent
All 6consent-05 is in UI ProGet UI Pro, €199


