Select
Single select
<script>
import { Select } from 'svelte-spectre'
let selected = 1,
options = [ 1, 2, 3 ],
multiple = false,
validity = null,
size = 'md'
</script>
<Select
options={options}
bind:value={selected}
bind:selected={selected}
bind:multiple={multiple}
validity={validity}
size={size} />
Multiple select
<script>
import { Select } from 'svelte-spectre'
let selected = 1,
options = [ 1, 2, 3 ],
multiple = false,
validity = null,
size = 'md'
</script>
<Select
options={options}
bind:value={selected}
bind:selected={selected}
validity={validity}
size={size}
multiple />