# Checkbox

`checkbox` · Controls · [All components](https://tsquare.dev/docs/components.md)

Checkbox with label.

![Checkbox example](https://tsquare.dev/docs/components/images/checkbox.png)

```tsquare
board
  screen custom width=300 height=100
    checkbox "Checked" checked
    checkbox "Unchecked"
```

## Writing it

- A quoted string sets **label**: `checkbox "…"`.
- `checked` and `unchecked` set whether it's checked.
- Anything else is written `key=value`.
- Has no children.

## Props

| Prop | Values | Notes |
|---|---|---|
| `label` *(main text)* | string |  |
| `checked` | boolean |  |
