0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
svelte/site/content/examples/binding-input-numeric/App.html
2018-12-22 16:09:27 -05:00

12 lines
245 B
HTML

<!-- number and range inputs are bound to numeric values -->
<input bind:value={a} type=number min=0 max=10>
<input bind:value={b} type=range min=0 max=10>
<p>{a} * {b} = {a * b}</p>
<style>
input {
display: block;
width: 10em
}
</style>