Checkbox
A box that turns an option on or off, filled with the action colour when checked and named by the Label tied to it through htmlFor.
Usage
Examples
Sizes
size sets the box and the check it draws: sm 14px, base 16px (the default) or lg 20px.
Border radius
borderRadius sets the box's corners on the kit's one scale: none, xs 4px (the default), sm 6px, base 8px, lg 12px, xl 16px, or full to make it round, which the 16px box already is from base up.
Indeterminate
checked="indeterminate" draws a dash for a box that is only partly on, as one over a list of which only some are checked, beside a box as it is by default, unchecked.
Disabled
disabled dims the box and its label and ignores clicks, beside one as it is by default.
Invalid
error writes what is wrong under the box and its label, rings the box in the destructive colour and describes it to screen readers, beside one without an error.
API Reference
Checkbox
CheckboxProps · components/Checkbox/Checkbox.types.tsIt also takes the props of Radix Checkbox.Root.