# Checkbox

Use checkbox for independent on/off choices. Bind `checked` or pass `indeterminate` for a partial state.
Pair with a label via matching `id` and `for` attributes.

```svelte
<script lang="ts">
	import { Checkbox } from '~/components/checkbox';
</script>

<div class="flex items-center gap-3">
	<Checkbox id="terms" />
	<label for="terms">Accept terms and conditions</label>
</div>
```