Checkbox
Checkboxes allow for two-state control over data on the device.
Displays an indeterminate state if the device doesn't match the checked or unchecked states.
![Screenshot of component Checkbox checked](/static/9918c3d017e73c70ca043a5dad666bf6/Checkbox-checked-desktop.png)
![Screenshot of component Checkbox unchecked](/static/0ad973f11a68847b31e0ecf438008928/Checkbox-unchecked-desktop.png)
![Screenshot of component Checkbox indeterminate](/static/7b4c3b349282a50d1d3e112589d3d577/Checkbox-indeterminate-desktop.png)
Usage
This checkbox reads and writes state to the bright
messageID. It will write 255
if checked, 0
if unchecked.
If the device state doesn't match either of these, it will display the indeterminate state [-]
.
import { Checkbox } from '@electricui/components-desktop-blueprint' <Checkbox accessor ={state => state .bright } checked ={255} unchecked ={0} writer ={(state , value ) => { state .bright = value }}> Brightness</Checkbox >