Stable3.85.0View in LexiconCHANGELOG
Use checked
property to check or not the checkbox.
To set a callback function when the value of the checkbox is changed, use onChange
property. See the following example:
Copied!
Code Sample (expand to see it)
Here you can see some options or ideas on how to extend our Checkbox component to fit your use:
Read Only
If you want a checkbox without actions on change(or just not use onChange property), use readOnly
property.
Copied!
Code Sample (expand to see it)
Container Props
If you want to modify the container that wraps the checkbox, use containerProps
:
Copied!
Code Sample (expand to see it)
Label
Use label
property to describe what the checkbox is for.
Copied!
Code Sample (expand to see it)
Inline
Group checkboxes on the same horizontal row by using inline
property.
Copied!
Code Sample (expand to see it)
Indeterminate
Use indeterminate
property for making the checkbox indeterminate.
Copied!
Code Sample (expand to see it)