Checkbox API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
label | string | — | Visible label text next to the checkbox. |
sr-label | string | — | Screen-reader-only label for accessibility. |
data-id | string | — | The id applied to the internal input element. |
name | string | — | Name used when the element is submitted in a form. |
value | string | — | Value of the input. |
checked | boolean | — | Whether the checkbox is checked. |
indeterminate | boolean | — | Puts the checkbox in an indeterminate (mixed) state. |
disabled | boolean | — | Makes the checkbox non-interactive. |
helper | string | — | Tooltip text shown next to the label as a helper hint. |
Events
| Event | Description | Returns | |
|---|---|---|---|
change | Fires whenever the checked state changes via click or keyboard. | Change event | |
click | Fires when the input or label is clicked. | Click event | |