Checkbox
Capture boolean input from user
Import
Source
Docs
Package
Usage
Color
Radius
xs
sm
md
lg
xl
Size
xs
sm
md
lg
xl
States
Replace icon
Sizes
Checkbox has 5 predefined sizes: xs, sm, md, lg, xl. Size defines label font-size, input width and height:
Indeterminate state
Checkbox supports indeterminate state. When indeterminate
prop is true,
checked
prop is ignored:
Controlled
Get input ref
You can get input ref by setting ref
prop:
Accessibility
Provide aria-label
in case you use checkbox without label for screen reader support:
Feedback
Your feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done good
Leave feedback