mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
12 lines
245 B
HTML
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> |