<script>
export let visible = false;
let input;
</script>
{#if visible}
<input bind:this={input} autofocus>
{/if}