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/site/content/examples/binding-input-radio/App.svelte

16 lines
290 B

<label>
<input type=radio bind:group={selected} value="red">
red
</label>
<label>
<input type=radio bind:group={selected} value="green">
green
</label>
<label>
<input type=radio bind:group={selected} value="blue">
blue
</label>
<p style="color: {selected};">selected {selected}</p>