{#if type === 'select'} 0}> {#each options as opt} {opt} {/each} {:else} 0} {checked} {type} {value} on:input={handleInput} on:change={handleInput} /> {/if}