<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>
