You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/packages/svelte/tests/runtime-runes/samples/select-function-binding-der.../main.svelte

10 lines
208 B

<script>
let source = $state('b');
let value = $derived(source);
</script>
<select bind:value={() => value, (next) => (value = next)}>
<option value="a">a</option>
<option value="b">b</option>
</select>