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/OLD.examples/binding-input-numeric/App.svelte

17 lines
289 B

<script>
let a = 5;
let b = 5;
</script>
<style>
input {
display: block;
width: 10em
}
</style>
<!-- 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>