blob: 4bb4aabd16ca43b537f6dc459a6c18a2fb4041dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<script>
let input;
let disabled = false;
function handleSubmit(event) {
console.log(event);
}
</script>
<form on:submit={handleSubmit}>
<input type="text" class="border rounded px-3" bind:value={input} disabled={disabled}>
<button type="submit">➤</button>
</form>
<style>
input[type="text"] {
/* TODO: percentage won't handle zoom in/out well. */
width: 96%;
}
</style>
|