checkbox: default value to false
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
let {
|
||||
name,
|
||||
required = false,
|
||||
value = $bindable(),
|
||||
value = $bindable(false),
|
||||
color = 'contrast',
|
||||
class: classValue,
|
||||
children,
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user