

Every state


default


focus


checked


focus-link


error


error-focus


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "accept-terms" | Checkbox id; the description and error hang off it. |
| name | string | "acceptTerms" | Form field name. |
| lead | string | "I agree to the" | Text before the terms link. |
| termsLabel | string | "terms of use" | Terms link text. |
| termsHref | string | "#terms" | Terms link. |
| privacyLabel | string | "privacy statement" | Privacy link text. |
| privacyHref | string | "#privacy" | Privacy link. |
| description | string | – | A short line under the label. |
| errorMessage | string | "Agree to the terms to continue" | Shown when the form is sent without the box ticked. |
| invalid | boolean | – | Shows the error from the start (previews, or after a server check). |
| defaultChecked | boolean | – | Starts ticked. |
| 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-06 is in UI ProGet UI Pro, €199


