9 lines
199 B

---
title: Checkbox inputs
---
Checkboxes are used for toggling between states. Instead of binding to `input.value`, we bind to `input.checked`:
```html
<input type=checkbox bind:checked={yes}>
```