> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mainly.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Checkbox

> A toggle control for boolean (true/false) values.

```
Checkbox(checked=False)
```

# Example

```python theme={null}
from mirmod.controls import Checkbox

@wob.receiver("value", "enabled", control=Checkbox(checked=False))
def receive_input(self, i):
  self.enabled = i.lower() == "true"
```

<Note>The Checkbox returns a string (`"true"` or `"false"`), not a boolean. Convert the value as shown in the example above.</Note>

# Parameters

| Name    | Type | Description                                                |
| ------- | ---- | ---------------------------------------------------------- |
| checked | bool | Initial checked state when the node loads. Default: False. |
