mirror of https://github.com/sveltejs/svelte
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.
27 lines
391 B
27 lines
391 B
6 years ago
|
<script>
|
||
|
let a = 1;
|
||
|
let b = 2;
|
||
|
</script>
|
||
|
|
||
|
<label>
|
||
1 year ago
|
<input type="number" value={a} min="0" max="10" />
|
||
|
<input type="range" value={a} min="0" max="10" />
|
||
6 years ago
|
</label>
|
||
|
|
||
|
<label>
|
||
1 year ago
|
<input type="number" value={b} min="0" max="10" />
|
||
|
<input type="range" value={b} min="0" max="10" />
|
||
6 years ago
|
</label>
|
||
|
|
||
3 years ago
|
<p>{a} + {b} = {a + b}</p>
|
||
|
|
||
|
<style>
|
||
1 year ago
|
label {
|
||
|
display: flex;
|
||
|
}
|
||
|
input,
|
||
|
p {
|
||
|
margin: 6px;
|
||
|
}
|
||
|
</style>
|