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/test/server-side-rendering/samples/bindings-group/main.svelte

13 lines
361 B

<script>
let tortilla = 'Plain';
let fillings = ['Cheese'];
</script>
<div>{fillings.toString()}</div>
<input type="radio" bind:group={tortilla} value="Plain">
<input type="radio" bind:group={tortilla} value="Whole wheat">
<input type="checkbox" bind:group={fillings} value="Beans">
<input type="checkbox" bind:group={fillings} value="Cheese">