Checkbox

You can change checkbox to indeterminate state by setting the indeterminate property of input checkboxes to true.

<script>
    import { Checkbox } from 'svelte-spectre'

    let value = false
</script>

<Checkbox bind:value indeterminate inline validity={null}>Checkbox</Checkbox>
© 2022 — 2023 BASF SE

API Checkbox

value: boolean = false
Checkbox value
true | false
indeterminate: boolean = false
Checkbox indeterminate
true | false
inline: boolean = false
Checkbox inline
true | false
validity: Validity = null
Checkbox validity
null | success | error