checkbox
Checkboxes allow the user to toggle an option on or off.
Usage
checkbox Label textStates
Control the state using boolean attributes.
checkbox(checked) Checkedcheckbox(indeterminate) Indeterminatecheckbox(disabled) DisabledSizes
Use the size attribute to change a checkboxβs size.
checkbox(size="small") Smallcheckbox(size="medium") Mediumcheckbox(size="large") LargeAttributes
| Name | Type | Default | Description |
|---|---|---|---|
checked | boolean | false | Drawn in a checked state. |
indeterminate | boolean | false | Drawn in an indeterminate state. |
disabled | boolean | false | Prevents interaction. |
size | small | medium | large | medium | Checkbox size. |
required | boolean | false | Marks as required. |