checkbox: default value to false

This commit is contained in:
Elijah Duffy
2025-07-23 11:58:41 -07:00
parent 2e9c6068b4
commit 0e188db829
2 changed files with 3 additions and 1 deletions

View File

@@ -22,7 +22,7 @@
let {
name,
required = false,
value = $bindable(),
value = $bindable(false),
color = 'contrast',
class: classValue,
children,

View File

@@ -197,6 +197,8 @@
<span>Checkbox is {checkboxValue}</span>
<Button onclick={() => (checkboxValue = 'indeterminate')}>Set Indeterminate</Button>
</div>
<Checkbox>Example checkbox</Checkbox>
</div>
<div class="component">